Best of LoggingMarch 2025

  1. 1
    Article
    Avatar of halodocHalodoc·1y

    Log Standardization

    Debugging in microservices is challenging without structured logging. This post explores logging strategies for HTTP requests, Kafka events, and concurrency in Java, Golang, and Python. It addresses context loss in Java’s multi-threading by introducing MDCAwareCompletableFuture and MDCAwareExecutorService, ensuring traceability in concurrent systems. A structured logging approach with Request ID, Transaction ID, and Parent Transaction ID is recommended for better traceability and debugging efficiency.

  2. 2
    Article
    Avatar of last9Last9·1y

    Nginx Logging: A Complete Guide for Beginners

    Learn how to effectively set up, manage, and optimize Nginx logging for better debugging, monitoring, and performance insights. This guide covers log locations by OS, customizing log locations, log formats, techniques for better log analysis, log rotation management, solving common logging issues, and advanced logging configurations like JSON logging, conditional logging, and logging to Syslog.

  3. 3
    Article
    Avatar of last9Last9·1y

    How to Set Up Logging in Node.js (Without Overthinking It)

    Proper logging in Node.js is critical for debugging, performance insights, security, and operational intelligence. The post outlines the importance of logging, recommends tools like Winston, Pino, and Morgan, and provides a guide to setting up and utilizing these libraries effectively. It also discusses advanced logging strategies, error handling, and integrations with visualization and monitoring tools like Last9, Kibana, and Grafana.

  4. 4
    Video
    Avatar of codeheimcodeHeim·1y

    #79 Golang - Observability: Logging with Loki, Promtail & Grafana

    Enhance observability in Golang applications by setting up logging using Loki, Promtail, and Grafana. Learn how to collect and send logs to Loki with Promtail and visualize them in Grafana. The post explains the setup process, configuring a Go application to write logs, using Promtail for log collection, and using Grafana to visualize and analyze logs.

  5. 5
    Article
    Avatar of last9Last9·1y

    MySQL Logs: Your Guide for Database Performance

    MySQL logs, including error logs, general query logs, slow query logs, binary logs, and relay logs, are crucial for monitoring and optimizing your database's performance. These logs help in identifying slow queries, troubleshooting connection issues, monitoring replication, and ensuring security and compliance. Proper logging setup and management, including log rotation and centralized logging, are essential for maintaining database health and performance.

  6. 6
    Video
    Avatar of codeheimcodeHeim·1y

    #81 Golang - Observability: Logging with Loki, Alloy & Grafana

    Enhance observability in Golang applications by setting up logging using Loki and Grafana. Use Alloy to collect logs and send them to Loki, then visualize and analyze logs in Grafana. Details on setting up Grafana, configuring SLOG for logging, and steps to integrate logs from Alloy to Loki are provided along with some basic operations you can perform in Grafana.

  7. 7
    Article
    Avatar of milanjovanovicMilan Jovanović·1y

    Better Request Tracing with User Context in ASP.NET Core

    Adding user context to request tracing in ASP.NET Core enhances troubleshooting, performance monitoring, and user behavior analysis. The post explains how to implement middleware that enriches logs with user IDs, improving the ability to track user journeys and quickly identify issues. It also discusses handling PII concerns and suggests expanding context enrichment with feature flags and tenant information.

  8. 8
    Article
    Avatar of appliedgoApplied Go·1y

    Beyond the Debugger: A Comprehensive Guide to Debugging Go Applications

    Effective debugging in Go involves a variety of strategies beyond just using a debugger. Writing clear, readable code, leveraging test-driven development, and employing strategic logging can make bugs easier to spot and resolve. For complex bugs, understanding the root cause through log examination and reproducible test cases is crucial. Delve into tools and techniques like Git bisect and the Go-specific debugger, Delve, to streamline the process, while also addressing concurrency and sporadic issues with specialized methods.

  9. 9
    Article
    Avatar of last9Last9·1y

    Syslog Monitoring: A Guide to Log Management and Analysis

    Master syslog monitoring to track system events, troubleshoot issues faster, and maintain infrastructure efficiency. This guide offers practical steps for setting up and configuring syslog, alongside advanced monitoring techniques. It covers the syslog protocol's key components, setting up a robust rsyslog server, secure transmission configurations, and log rotation management. Explore advanced monitoring tools, parsing techniques, and syslog formats for deeper log analysis. Implement smart alerting strategies, event correlation, and machine learning for effective syslog monitoring and proactive management.