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