Tag

Logback

0 views collected around this technical thread.

macrozheng
macrozheng
May 20, 2025 · Backend Development

10 Logging Rules Every Backend Engineer Should Follow

This article shares ten practical rules for producing high‑quality logs in Java backend systems, covering unified formatting, stack traces, log levels, complete parameters, data masking, asynchronous logging, traceability, dynamic level adjustment, structured storage, and intelligent monitoring to help developers quickly diagnose issues and improve system reliability.

JavaLogbackbackend development
0 likes · 12 min read
10 Logging Rules Every Backend Engineer Should Follow
Java Tech Enthusiast
Java Tech Enthusiast
May 18, 2025 · Operations

Ten Rules for Writing High‑Quality Logs in Production Systems

This article presents ten practical rules for producing high‑quality, searchable logs—including unified formatting, stack‑trace inclusion, proper log levels, complete parameters, data masking, asynchronous writing, trace‑ID linking, dynamic level control, structured storage, and intelligent monitoring—to help developers quickly diagnose issues in high‑traffic applications.

JavaLogbackbest practices
0 likes · 11 min read
Ten Rules for Writing High‑Quality Logs in Production Systems
Sohu Tech Products
Sohu Tech Products
Mar 5, 2025 · Operations

Integrating SkyWalking Trace ID with ELK for Distributed Tracing in Microservices

The article explains how to combine SkyWalking’s distributed tracing capabilities with the ELK stack by embedding SkyWalking trace IDs into logs—using a custom Logback layout or MDC—so that microservice errors can be correlated across tracing and log visualisation, leveraging each tool’s strengths.

APMDistributed TracingELK
0 likes · 8 min read
Integrating SkyWalking Trace ID with ELK for Distributed Tracing in Microservices
Architect's Guide
Architect's Guide
Feb 25, 2025 · Backend Development

Performance Comparison and Usage Guide for Logback vs Log4j2 in Java Applications

This article compares the performance of Logback and Log4j2, presents benchmark results under various thread counts, explains their relationship with SLF4J, and provides step‑by‑step configuration and usage instructions for both frameworks in Spring Boot projects, including best practices and sample code.

Java LoggingLogbackSlf4j
0 likes · 15 min read
Performance Comparison and Usage Guide for Logback vs Log4j2 in Java Applications
Java Tech Enthusiast
Java Tech Enthusiast
Jan 1, 2025 · Information Security

Fixing Logback CVE-2023-6378 in Spring Boot 2.7.x

To remediate CVE‑2023‑6378 in a Spring Boot 2.7.x application, you must replace the default logging starter with a direct Logback 1.2.x dependency (e.g., 1.2.13), because Spring Boot 2.7 cannot use Logback 1.3.x due to the removed StaticLoggerBinder class; the only other option is to upgrade the whole stack to Spring Boot 3.x, Logback 1.4.x, and JDK 11.

CVE-2023-6378JavaLogback
0 likes · 14 min read
Fixing Logback CVE-2023-6378 in Spring Boot 2.7.x
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 27, 2024 · Backend Development

How to Mask Sensitive Data in Spring Boot Logs with Logback

Learn how to protect personal data in Spring Boot 3.2.5 applications by customizing Logback's PatternLayout and appender to mask fields such as name, phone, password, and email, with step‑by‑step code examples, configuration snippets, and handling of object logging.

Java LoggingLogbackSensitive Data
0 likes · 7 min read
How to Mask Sensitive Data in Spring Boot Logs with Logback
DaTaobao Tech
DaTaobao Tech
Sep 23, 2024 · Backend Development

Root Cause Analysis of Missing Logs after Tomcat 7→8 Upgrade

After upgrading from Tomcat 7 to Tomcat 8, the application’s mixed log4j‑1.4 and logback‑1.2.3 dependencies caused the SLF4J binder to be loaded nondeterministically, so Tomcat 8 sometimes selected the Log4j binder without a configuration file, resulting in completely missing log output; removing the conflicting jars or enforcing a deterministic class‑loading order restored logging.

ClassLoaderJavaLogback
0 likes · 19 min read
Root Cause Analysis of Missing Logs after Tomcat 7→8 Upgrade
Selected Java Interview Questions
Selected Java Interview Questions
Sep 10, 2024 · Backend Development

Graceful Shutdown in Spring Boot: Mechanisms, Code Samples, and Configuration

This article explains how Spring Boot handles graceful shutdown in Kubernetes, manual Actuator shutdown, SIGTERM handling, Tomcat graceful termination, and Logback log flushing, providing detailed code examples, configuration snippets, and the underlying shutdown hook mechanisms that ensure resources are released cleanly.

GracefulShutdownJavaKubernetes
0 likes · 18 min read
Graceful Shutdown in Spring Boot: Mechanisms, Code Samples, and Configuration
Selected Java Interview Questions
Selected Java Interview Questions
Sep 9, 2024 · Backend Development

Implementing TraceId and MDC for Log Correlation in Java Backend Services

This article explains how to generate a unique TraceId, propagate it via HTTP headers and SLF4J MDC, integrate the mechanism with Logback, Feign clients, thread pools, and SkyWalking, and details the underlying MDC and Logback placeholder implementations for reliable log tracing in Java backend applications.

JavaLogbackMDC
0 likes · 17 min read
Implementing TraceId and MDC for Log Correlation in Java Backend Services
macrozheng
macrozheng
Aug 27, 2024 · Backend Development

Master Java Logging: Configure Logback & Log4j2 in Spring Boot

This article explains how to use SLF4J as a facade for Logback or Log4j2, shows Maven dependencies, demonstrates logback.xml and logback‑spring.xml configurations, covers Spring Boot's default logging setup, custom log levels, profile‑based settings, and how to switch to Log4j2 for higher performance.

JavaLogbackSlf4j
0 likes · 15 min read
Master Java Logging: Configure Logback & Log4j2 in Spring Boot
Architect
Architect
Jun 9, 2024 · Backend Development

Using MDC and TraceId for Log Correlation in Java Applications

This article explains how to use SLF4J MDC together with a TraceId header to correlate logs across threads, services, and distributed tracing tools like SkyWalking, providing code examples for filters, Feign interceptors, thread‑pool adapters, and Logback configuration.

JavaLogbackMDC
0 likes · 15 min read
Using MDC and TraceId for Log Correlation in Java Applications
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 19, 2024 · Backend Development

Master Spring Boot Logging: Configuration, Color, Files, and Rotation

This guide explains how Spring Boot 3.2.5 configures logging with Logback, Java Util Logging, Log4j2 and Commons Logging, covering default formats, color output, file writing, rotation policies, log levels, grouping, shutdown hooks, custom configuration files, and Logback extensions.

LogbackSpring Bootbackend development
0 likes · 11 min read
Master Spring Boot Logging: Configuration, Color, Files, and Rotation
Qunar Tech Salon
Qunar Tech Salon
May 13, 2024 · Operations

Root Cause Analysis of Intermittent Timeout Issues in the Sirius Service Caused by RAID Card Consistency Checks

This article details the investigation of sporadic interface timeouts in the Sirius real‑time pricing service, revealing a weekly pattern linked to RAID controller consistency checks that cause IO spikes, logback queue blockage, and ultimately Dubbo client‑side timeouts, and proposes mitigation steps and general performance‑troubleshooting guidelines.

LogbackRAIDbackend
0 likes · 22 min read
Root Cause Analysis of Intermittent Timeout Issues in the Sirius Service Caused by RAID Card Consistency Checks
Code Ape Tech Column
Code Ape Tech Column
Apr 21, 2024 · Cloud Native

Deploying Graylog with Docker‑Compose and Integrating It into a Spring Boot Application

This tutorial explains how to deploy Graylog using Docker‑Compose for centralized log aggregation in a microservices environment and shows step‑by‑step integration of Graylog with a Spring Boot application via Logback‑GELF, including configuration, code examples, and basic log search queries.

DockerDocker ComposeGELF
0 likes · 8 min read
Deploying Graylog with Docker‑Compose and Integrating It into a Spring Boot Application
Selected Java Interview Questions
Selected Java Interview Questions
Feb 22, 2024 · Backend Development

Performance Comparison and Usage Guide for Log4j2 vs Logback in Java

This article compares the performance of Log4j2 and Logback in Java, explains their relationship with SLF4J, presents benchmark results under various thread counts, and provides detailed configuration and usage guidelines for both Spring Boot and plain Java projects.

Java LoggingLogbackSpring Boot
0 likes · 14 min read
Performance Comparison and Usage Guide for Log4j2 vs Logback in Java
DaTaobao Tech
DaTaobao Tech
Jan 24, 2024 · Backend Development

Proper Use of Java Logging Systems and Frameworks

To correctly implement Java logging, choose a compatible framework‑system pair such as SLF4J with Logback, configure Maven dependencies and a rolling Logback XML, use MDC for context, enable dynamic level changes, avoid custom wrappers, and follow a checklist for cleanup and troubleshooting.

LogbackMavenSlf4j
0 likes · 13 min read
Proper Use of Java Logging Systems and Frameworks
Architect's Guide
Architect's Guide
Dec 19, 2023 · Backend Development

Understanding Buffering: Concepts, Java I/O, Logback Logging, and Kafka Optimizations

This article explains the fundamentals of buffering, demonstrates how Java I/O streams and Logback logging use buffers to improve performance, explores synchronous and asynchronous buffering strategies, and discusses Kafka producer buffering with practical code examples and optimization guidelines.

BufferingJava I/OKafka
0 likes · 17 min read
Understanding Buffering: Concepts, Java I/O, Logback Logging, and Kafka Optimizations
Java Architect Essentials
Java Architect Essentials
Oct 1, 2023 · Backend Development

The Importance of Logging, Log Levels, and Common Java Logging Frameworks (Log4j, Logback, SLF4J)

This article explains why logging is crucial in software development, introduces the standard log levels, reviews popular Java logging libraries such as Log4j, Logback and SLF4J, demonstrates their configuration and usage, compares their features, and highlights the Facade design pattern that underlies SLF4J.

FacadePatternJavaLogback
0 likes · 22 min read
The Importance of Logging, Log Levels, and Common Java Logging Frameworks (Log4j, Logback, SLF4J)
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 13, 2023 · Backend Development

Mastering Spring Boot Logging: Formats, Colors, Files, and Custom Configurations

This guide explains how Spring Boot’s default logging uses Logback with Commons Logging, details the console log format, color coding, file output options, rolling policies, log levels, logger groups, and advanced customizations through logback‑spring.xml and environment properties.

JavaLogbackSpring Boot
0 likes · 17 min read
Mastering Spring Boot Logging: Formats, Colors, Files, and Custom Configurations
JD Retail Technology
JD Retail Technology
Sep 1, 2023 · Backend Development

Root Cause Analysis and Resolution of Disk Usage Alert in a Java Application

After a Java system went live, a disk usage alert exceeding 90% prompted an investigation that uncovered a third‑party jar’s debug‑level Log4j configuration writing large logs to the root directory, and the issue was resolved by excluding the offending jar via Maven, highlighting the need for careful dependency management.

JavaLogbackMaven
0 likes · 4 min read
Root Cause Analysis and Resolution of Disk Usage Alert in a Java Application