Implementing Global Request Logging in Spring Boot with ECharts Dashboard Integration

Database SchemaTable CreationCREATE TABLE `request_audit_log` ( `log_id` BIGINT NOT NULL AUTO_INCREMENT, `created_at` DATETIME NOT NULL COMMENT 'Request timestamp', `client_ip` VARCHAR(30) NOT NULL COMMENT 'Client IP address', `api_category` VARCHAR(50) NOT NULL DEFAULT 'General' COMMENT 'API category', `endpoint_url` VARCHAR(100) NOT ...

Posted on Fri, 08 May 2026 23:38:15 +0000 by Eskimo887

Working with Properties, XML, and Logging in Java

Properties Files Properties files store key-value pairs, with keys being unique. They typically use the .properties extension. Reading Properties Files import java.io.FileReader; import java.util.Properties; import java.util.Set; public class PropertiesReader { public static void main(String[] args) throws Exception { Properties pr ...

Posted on Fri, 08 May 2026 18:42:13 +0000 by Allen4172

Logging JVM Crashes in Java Services

Capturing Crash Information Adding a Global Uncaught Exception Hook To record unexpected failures, install a handler for uncaught exceptions at the thread level. This catches errors that escape typical try-catch blocks. Thread.setDefaultUncaughtExceptionHandler((thread, throwable) -> { String logEntry = String.format("[FATAL] Thread ...

Posted on Fri, 08 May 2026 14:12:00 +0000 by Sentosa

Effective Logging in Python Using the logging Module

Applications often require structured logging to track events, errors, and operational details. Python’s built-in logging module provides a flexible framework for emitting log mesages from applications. It supports multiple severity levels: CRITICAL, ERROR, WARNING, INFO, and DEBUG, in descending order of severity. By default, the root logger o ...

Posted on Fri, 08 May 2026 11:49:05 +0000 by airdee