Best of LoggingFebruary 2025

  1. 1
    Article
    Avatar of last9Last9·1y

    Log Levels: Answers to the Most Common Questions

    Logging is crucial for monitoring software systems, catching issues, and tracking behavior. Log levels categorize messages by importance, making it easier to filter and troubleshoot problems. This post explains common log levels like TRACE, DEBUG, INFO, WARN, ERROR, and FATAL, and how these compare to Syslog log levels. It also covers best practices for using log levels, how they impact performance, and their role in different logging frameworks and environments.

  2. 2
    Article
    Avatar of awegoAwesome Go·1y

    Recover panics in all Goroutines you start

    Panics in Go Goroutines can cause server crashes if not properly handled. Implementing a helper function, CatchPanic, for panic recovery ensures that errors are logged and the application continues running. Wrapping all manually created Goroutines with this helper can prevent entire application crashes and assist in diagnosing issues.

  3. 3
    Video
    Avatar of denoDeno·1y

    Deno got even better!

    Deno 2.2 introduces significant updates, including built-in support for OpenTelemetry, which enables comprehensive monitoring and observability of applications. The release also enhances the deno lint tool with a new plugin system and additional rules, particularly benefiting React and Preact users. Furthermore, improvements in type checking and workspace configuration, along with faster and more responsive deno lsp, elevate the overall developer experience.

  4. 4
    Article
    Avatar of freecodecampfreeCodeCamp·1y

    How to Use FakeLogger to Make Testing Easier In .Net

    This post explains how to simplify testing logging functionality in .NET using the new FakeLogger feature available from .NET 8 upwards. It covers the challenges of mocking ILogger, the steps for setting up and using FakeLogger, and the benefits of combining it with FluentAssertions for clearer and more maintainable tests. The post includes examples and detailed explanations to help developers efficiently verify log messages in their unit tests.