Tagged articles
108 articles
Page 1 of 2
IT Services Circle
IT Services Circle
Jan 24, 2026 · Backend Development

Mastering Java Logging: SLF4J Facade, Logback Configuration, and Best Practices

This article explains why logs are essential for debugging and incident analysis, introduces the SLF4J façade to decouple applications from concrete logging implementations, details Spring Boot Logback setup, and provides concrete best‑practice guidelines such as proper log levels, formatting, rolling policies, placeholder usage, and safe exception handling.

best-practiceslogbacklogging
0 likes · 10 min read
Mastering Java Logging: SLF4J Facade, Logback Configuration, and Best Practices
IT Services Circle
IT Services Circle
Jan 15, 2026 · Backend Development

10 Logging Best Practices Every Java Backend Engineer Should Follow

This article presents ten practical rules for producing clean, searchable, and performance‑friendly logs in Java applications, covering unified formatting, stack traces, log levels, complete parameters, data masking, asynchronous writing, traceability, dynamic log levels, structured storage, and intelligent monitoring with concrete code snippets and configuration examples.

asynchronous loggingbest practiceslogback
0 likes · 10 min read
10 Logging Best Practices Every Java Backend Engineer Should Follow
Su San Talks Tech
Su San Talks Tech
Jan 11, 2026 · Backend Development

10 Essential Logging Rules Every Backend Engineer Should Follow

This article presents ten practical guidelines for writing clean, consistent, and performant logs in Java applications, covering unified formatting, stack traces, appropriate log levels, complete parameters, data masking, asynchronous logging, dynamic log level control, trace ID propagation, structured JSON storage, and intelligent monitoring with ELK.

best practiceslogbacklogging
0 likes · 10 min read
10 Essential Logging Rules Every Backend Engineer Should Follow
Selected Java Interview Questions
Selected Java Interview Questions
Jan 4, 2026 · Backend Development

Master Java Logging with SLF4J, Logback, and Lombok @Slf4j

This tutorial explains why System.out.println() is unsuitable for production logging, shows how to add SLF4J and Logback dependencies, configure logback.xml, use Lombok's @Slf4j annotation to generate a logger, and provides practical code examples for unified API logging and exception tracking.

Lombokbackend-developmentjava
0 likes · 9 min read
Master Java Logging with SLF4J, Logback, and Lombok @Slf4j
Java Tech Enthusiast
Java Tech Enthusiast
Nov 14, 2025 · Backend Development

Master Spring Boot Logging: From Basics to Advanced Configuration

This guide explains why logging is essential in Java, explores its various uses such as system monitoring, data collection, and audit, demonstrates how to print logs with SLF4J in Spring Boot, and provides detailed instructions for configuring log levels, persistence, file rotation, formatting, and Lombok shortcuts.

LombokSpring Bootlogback
0 likes · 18 min read
Master Spring Boot Logging: From Basics to Advanced Configuration
Architecture Digest
Architecture Digest
Nov 11, 2025 · Backend Development

Mastering Spring Boot Logging: From Basics to Advanced Configuration

Learn why logging is essential in Java applications, explore Spring Boot’s built‑in SLF4J framework, discover how to print, configure levels, persist logs, customize formats, manage file rotation, and simplify logging with Lombok, all through clear examples and practical guidance.

LombokSpring Bootjava
0 likes · 17 min read
Mastering Spring Boot Logging: From Basics to Advanced Configuration
Java Companion
Java Companion
Nov 11, 2025 · Backend Development

Mastering Spring Boot Logging: Levels, Persistence, Formatting, and Lombok Simplification

This article explains why traditional System.out printing is insufficient, introduces Spring Boot's built‑in SLF4J/Logback logging, demonstrates how to obtain and use a logger, details log levels, configuration of log levels, file persistence, rolling policies, formatting, and shows how Lombok's @Slf4j annotation can simplify logger usage.

ConfigurationLombokSpringBoot
0 likes · 17 min read
Mastering Spring Boot Logging: Levels, Persistence, Formatting, and Lombok Simplification
IT Services Circle
IT Services Circle
Nov 7, 2025 · Backend Development

Master Java Logging: 8 Best Practices to Debug and Optimize Your Applications

A junior developer learns why logging is essential, how to use Logback and Lombok in Spring Boot, choose appropriate log levels, apply parameterized messages, control output volume, format logs, use asynchronous logging, manage log files, and integrate a log collection system for large-scale applications.

Spring Bootbest practiceslogback
0 likes · 16 min read
Master Java Logging: 8 Best Practices to Debug and Optimize Your Applications
Architect
Architect
Oct 5, 2025 · Backend Development

How to Use TraceId and MDC for Precise Log Tracing in Java Microservices

This article explains how to solve interleaved log lines in multi‑threaded pods by propagating a unique TraceId via HTTP headers and SLF4J MDC, integrating the approach with Spring filters, Feign interceptors, thread‑pool adapters, and SkyWalking for end‑to‑end tracing.

SkyWalkingfeignjava
0 likes · 16 min read
How to Use TraceId and MDC for Precise Log Tracing in Java Microservices
Ray's Galactic Tech
Ray's Galactic Tech
Sep 24, 2025 · Backend Development

Master Spring Boot 3.x Logging: Logback Integration, Advanced Config & Best Practices

This guide explains how Spring Boot 3.x uses Logback by default, shows basic property‑based setup, advanced logback‑spring.xml configurations, profile‑specific logging, SQL tracing with Hibernate, MyBatis, p6spy and datasource‑proxy, plus MDC tracing, async logging, alerting and production best practices.

ConfigurationSpring Bootjava
0 likes · 10 min read
Master Spring Boot 3.x Logging: Logback Integration, Advanced Config & Best Practices
dbaplus Community
dbaplus Community
Aug 5, 2025 · Backend Development

10 Logging Best Practices to Diagnose Production Issues Efficiently

This article presents ten practical rules for writing high‑quality logs—covering format consistency, stack traces, log levels, parameter completeness, asynchronous handling, traceability, dynamic configuration, structured storage, and intelligent monitoring—to help engineers quickly pinpoint problems in high‑traffic systems.

logbackloggingmonitoring
0 likes · 9 min read
10 Logging Best Practices to Diagnose Production Issues Efficiently
Java Captain
Java Captain
Jul 16, 2025 · Backend Development

How to Deploy Graylog with Docker‑Compose and Integrate It into Spring Boot

Learn how to set up Graylog for centralized log aggregation using Docker‑Compose, configure its inputs, and seamlessly integrate it with a Spring Boot application via Logback‑GELF, including necessary code snippets, configuration files, and query examples for efficient log searching.

DockerGraylogMicroservices
0 likes · 7 min read
How to Deploy Graylog with Docker‑Compose and Integrate It into Spring Boot
Java Architect Essentials
Java Architect Essentials
Jul 6, 2025 · Operations

How Logback, MDC, and ELK Can Rescue Your Nighttime Log Chaos

This article explains how chaotic, multi‑framework logging in Java microservices leads to debugging nightmares, and demonstrates a three‑step solution—standardizing on Logback, adding traceable MDC identifiers, and visualizing logs with ELK—to achieve unified log formats, sensitive data masking, and dramatically faster issue resolution.

ELKlogbacklogging
0 likes · 10 min read
How Logback, MDC, and ELK Can Rescue Your Nighttime Log Chaos
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.

javalogbacklogging
0 likes · 12 min read
10 Logging Rules Every Backend Engineer Should Follow
Lin is Dream
Lin is Dream
May 20, 2025 · Backend Development

Build a Custom Logging Service with Logback: From Appender to Queue

This article explains what a logging service is, compares ELK and custom appender solutions, shows how to create a Logback appender by extending AppenderBase, provides a complete Java example with configuration, and demonstrates the custom appender in action for backend developers.

backend-developmentcustom appenderlogback
0 likes · 7 min read
Build a Custom Logging Service with Logback: From Appender to Queue
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.

best practiceslogbacklogging
0 likes · 11 min read
Ten Rules for Writing High‑Quality Logs in Production Systems
Su San Talks Tech
Su San Talks Tech
May 15, 2025 · Backend Development

10 Essential Logging Rules for Reliable Backend Systems

This article shares ten practical guidelines for writing high‑quality logs in Java backend services, covering format consistency, stack traces, log levels, complete parameters, data masking, asynchronous logging, traceability, dynamic log levels, structured storage, and intelligent monitoring to improve debugging and system reliability.

logbacklogging
0 likes · 11 min read
10 Essential Logging Rules for Reliable Backend Systems
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 12, 2025 · Backend Development

Comprehensive Guide to Log Configuration and Performance Comparison of Major Java Logging Frameworks

The article explains why logging is essential for problem tracing, status monitoring, and security auditing, introduces Log4j, Log4j2, and Logback components and configuration files, demonstrates usage with Maven dependencies and code snippets, evaluates their synchronous and asynchronous performance, and offers practical recommendations for production environments.

java logginglog4jlog4j2
0 likes · 28 min read
Comprehensive Guide to Log Configuration and Performance Comparison of Major Java Logging Frameworks
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-6378Spring Bootdependency management
0 likes · 14 min read
Fixing Logback CVE-2023-6378 in Spring Boot 2.7.x
ITPUB
ITPUB
Nov 24, 2024 · Backend Development

Master Java Logging: Frameworks, Best Practices, and Real‑World Tips

This guide explains why logging is essential for Java applications, compares popular logging frameworks such as Logback, Log4j2, and SLF4J, shows how to integrate them with Spring Boot, and provides concrete best‑practice recommendations for levels, formatting, async handling, rotation, and security.

Spring Bootbest practicesjava
0 likes · 17 min read
Master Java Logging: Frameworks, Best Practices, and Real‑World Tips
Java Backend Technology
Java Backend Technology
Nov 21, 2024 · Backend Development

Trace Requests Across Threads with TraceId, MDC, and SkyWalking in Java

This article explains how to solve interleaved logs in multi‑threaded pods by adding a unique X‑App‑Trace‑Id header, propagating it through a TraceIdFilter, storing it in SLF4J MDC, adapting Feign and thread pools, and integrating SkyWalking to enrich log patterns with trace identifiers.

SkyWalkingSpring Bootlogback
0 likes · 16 min read
Trace Requests Across Threads with TraceId, MDC, and SkyWalking in Java
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.

Tomcatclassloaderdebugging
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.

GracefulShutdownKubernetesSpringBoot
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.

BackendSkyWalkingThreadPoolExecutor
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.

Spring Bootjavalog4j2
0 likes · 15 min read
Master Java Logging: Configure Logback & Log4j2 in Spring Boot
Eric Tech Circle
Eric Tech Circle
Aug 15, 2024 · Backend Development

Lightweight Distributed Tracing in Spring Cloud Without Third‑Party Tools

This guide shows how to implement end‑to‑end trace ID propagation across Spring Cloud gateways, downstream services, and asynchronous threads using a custom GlobalTraceFilter, a patched LogbackMDCAdapter with Alibaba TransmittableThreadLocal, and minimal configuration, avoiding heavyweight tracing libraries.

Distributed TracingMicroservicesSpring Boot
0 likes · 5 min read
Lightweight Distributed Tracing in Spring Cloud Without Third‑Party Tools
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 11, 2024 · Backend Development

Why Your logback-spring.xml Isn’t Working and How to Fix It

This article walks through the complete troubleshooting process for a non‑functional logback‑spring.xml in a Spring Boot application, covering background, configuration steps, common pitfalls such as variable resolution and dependency conflicts, remote debugging techniques, and final recommendations to ensure proper log output.

Configurationdebuggingjava
0 likes · 9 min read
Why Your logback-spring.xml Isn’t Working and How to Fix It
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.

javalogbacklogging
0 likes · 15 min read
Using MDC and TraceId for Log Correlation in Java Applications
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.

OperationsRAIDlogback
0 likes · 22 min read
Root Cause Analysis of Intermittent Timeout Issues in the Sirius Service Caused by RAID Card Consistency Checks
Architect
Architect
Jan 22, 2024 · Backend Development

Designing a Unified API Response and Global Exception Handling in Spring Boot

This article walks through creating a standardized JSON response structure with a Result enum and wrapper class, demonstrates how to return it from controllers, implements a @ControllerAdvice‑based global exception handler with custom exceptions, and configures Logback for comprehensive logging in Spring Boot applications.

Exception HandlingSpring BootUnified response
0 likes · 17 min read
Designing a Unified API Response and Global Exception Handling in Spring Boot
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 27, 2023 · Backend Development

Boost Java Logging Performance: Practical Tips and Configurations

This article explores Java logging performance by analyzing the logging pipeline, presenting measurements of log size impact, and offering concrete optimization techniques such as reducing log payload, compressing logger and exception output, using asynchronous logging, and configuring rolling files to minimize both visible business overhead and hidden system costs.

Asyncjavalog4j2
0 likes · 20 min read
Boost Java Logging Performance: Practical Tips and Configurations
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.

FacadePatternjavalog4j2
0 likes · 22 min read
The Importance of Logging, Log Levels, and Common Java Logging Frameworks (Log4j, Logback, SLF4J)
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.

Backenddisk usagejava
0 likes · 4 min read
Root Cause Analysis and Resolution of Disk Usage Alert in a Java Application
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 16, 2023 · Backend Development

Mastering Spring Boot Logging: Formats, Levels, and Custom Configurations

This guide explains Spring Boot 2.4.12 logging fundamentals, covering default console output, customizable patterns, colored logs, file rotation, log levels, logger groups, and advanced Logback extensions, with practical YAML and XML examples for fine‑tuning your application's logging behavior.

Console outputCustom PropertiesSpring Boot
0 likes · 19 min read
Mastering Spring Boot Logging: Formats, Levels, and Custom Configurations
iQIYI Technical Product Team
iQIYI Technical Product Team
Jul 28, 2023 · Operations

Distributed System Log Printing Optimization and Performance Evaluation

The study evaluates log4j2 and logback performance, recommends asynchronous logback for high‑concurrency workloads, demonstrates latency reductions in a production service, and introduces a TraceContext‑based flag to share logging state across micro‑services, cutting daily log volume by ~80 % and easing distributed system overhead.

Performance Testinglog optimizationlog4j2
0 likes · 16 min read
Distributed System Log Printing Optimization and Performance Evaluation
Architect
Architect
Feb 22, 2023 · Backend Development

Custom Logback Desensitization Component (slf4j + logback) – Usage and Configuration Guide

This article explains how to securely mask sensitive data in log output by using either a conversionRule tag with MessageConverter or a custom utility class, and provides a step‑by‑step guide to integrate a reusable Logback desensitization component with Maven dependency, appender replacement, and YAML configuration.

Configurationdesensitizationlogback
0 likes · 10 min read
Custom Logback Desensitization Component (slf4j + logback) – Usage and Configuration Guide
Programmer DD
Programmer DD
Nov 14, 2022 · Backend Development

Master Spring Boot Logging: From SLF4J Basics to Advanced Configuration

This tutorial explains how Spring Boot handles logging with Commons Logging, demonstrates using SLF4J as a facade, shows a complete code example, and covers configuring log output, levels, color, file rotation, and custom patterns for effective backend logging.

ConfigurationSpring Bootlogback
0 likes · 11 min read
Master Spring Boot Logging: From SLF4J Basics to Advanced Configuration
Architect
Architect
Aug 22, 2022 · Backend Development

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

This article explains the principle of buffering, illustrates its benefits with Java file I/O, Logback asynchronous logging, and Kafka producer batching, and provides practical optimization ideas, code examples, and cautions for both synchronous and asynchronous buffer designs.

BufferingJava I/Ologback
0 likes · 16 min read
Understanding Buffering: Concepts, Java I/O, Logback, and Kafka Optimization
Java High-Performance Architecture
Java High-Performance Architecture
Aug 21, 2022 · Backend Development

Master Spring Boot Logging: Configure Logback & SLF4J for Powerful Log Management

This guide explains why Logback is the preferred logging framework for Spring Boot, shows how to add the necessary dependencies, configure console and file appenders, customize log patterns, use rolling policies, apply filters, and optimize logging statements with placeholders, all illustrated with clean XML and Java code examples.

Spring BootXMLjava
0 likes · 23 min read
Master Spring Boot Logging: Configure Logback & SLF4J for Powerful Log Management
Architect's Tech Stack
Architect's Tech Stack
Aug 16, 2022 · Backend Development

Using Logback and SLF4J for Logging in Spring Boot

This article explains why Logback is preferred over Log4j, shows how to add the necessary Maven dependencies, describes default and custom configurations via logback‑spring.xml, details logger, appender, layout, rolling policies and filters, and provides best practices for efficient logging in Spring Boot applications.

Configurationjava logginglogback
0 likes · 21 min read
Using Logback and SLF4J for Logging in Spring Boot
Sohu Tech Products
Sohu Tech Products
Jul 20, 2022 · Backend Development

Diagnosing Thread Blocking in a Spring Boot Service Caused by Logback Configuration Errors

This article details a step‑by‑step investigation of a Java Spring‑Boot service that suffered nightly response‑time alerts, revealing that misconfigured Logback file paths caused cross‑volume log rotation, thread blocking, and ultimately a production outage, and shows how gray‑deployment and environment fixes resolved the issue.

KubernetesPerformance debuggingSpring Boot
0 likes · 13 min read
Diagnosing Thread Blocking in a Spring Boot Service Caused by Logback Configuration Errors
Architect
Architect
Jul 19, 2022 · Information Security

Custom Logback Desensitization Component: Configuration and Usage Guide

This article introduces a Logback desensitization component for Java applications, explains two common masking approaches, compares their pros and cons, and provides step‑by‑step instructions—including Maven dependency, appender replacement, YAML configuration, supported data types, matching rules, custom regex, and jar installation—to securely mask sensitive information in logs.

data maskingdesensitizationlogback
0 likes · 12 min read
Custom Logback Desensitization Component: Configuration and Usage Guide
Cognitive Technology Team
Cognitive Technology Team
Jun 26, 2022 · Backend Development

AsyncAppender OOM, Log Loss, and Blocking Issues – Configuration Guide

The article explains how AsyncAppender uses a BlockingQueue with a default size of 256, how an oversized queue can cause OOM, how the discardingThreshold can lead to loss of TRACE/DEBUG/INFO logs, and provides configuration tips such as adjusting queueSize, setting discardingThreshold to zero, or enabling neverBlock to avoid blocking.

AsyncAppenderBlockingQueueOOM
0 likes · 5 min read
AsyncAppender OOM, Log Loss, and Blocking Issues – Configuration Guide
Top Architect
Top Architect
Mar 28, 2022 · Backend Development

Configuring Logback for Asynchronous Logging in Spring Boot and Performance Comparison

This article explains how to configure Logback in a Spring Boot application to separate logs by level, implement asynchronous logging with AsyncAppender, and compare performance using JMeter, demonstrating a tenfold throughput increase while providing detailed XML configuration examples and underlying implementation details.

Performance TestingSpringBootasynchronous logging
0 likes · 9 min read
Configuring Logback for Asynchronous Logging in Spring Boot and Performance Comparison
Programmer DD
Programmer DD
Jan 6, 2022 · Backend Development

Boost Spring Boot Performance with Asynchronous Logback Logging

This article explains how to configure Logback in Spring Boot to separate logs by level, use asynchronous appenders to reduce I/O latency, and demonstrates a performance test showing a ten‑fold throughput increase, while also detailing the underlying async logging mechanism.

asynchronous logginglogbackperformance
0 likes · 9 min read
Boost Spring Boot Performance with Asynchronous Logback Logging
Java Architect Essentials
Java Architect Essentials
Dec 30, 2021 · Information Security

Log4j2 Vulnerability and Logback Security: Remediation Recommendations

This article outlines the Log4j2 security vulnerability, notes that Logback shares the same flaw, and provides comprehensive remediation advice—including upgrading to Log4j2 2.17, coordinating development and security teams, testing environments, JDK updates, and consulting professional security services.

Information SecurityPatch UpgradeSecurity Vulnerability
0 likes · 5 min read
Log4j2 Vulnerability and Logback Security: Remediation Recommendations
Java High-Performance Architecture
Java High-Performance Architecture
Dec 30, 2021 · Information Security

Understanding Logback CVE‑2021‑42550: Remote Code Execution Risks and Mitigation

This article explains the Logback vulnerability CVE‑2021‑42550 affecting versions before 1.2.7, detailing how malicious configuration files can lead to remote code execution via LDAP, outlines trigger conditions, affected versions, provides a SpringBoot demo for exploitation, and offers practical mitigation advice.

CVE-2021-42550Configuration AttackRemote Code Execution
0 likes · 4 min read
Understanding Logback CVE‑2021‑42550: Remote Code Execution Risks and Mitigation
Programmer DD
Programmer DD
Dec 29, 2021 · Backend Development

Master Spring Boot Logging with SLF4J: Configuration, Levels, and Best Practices

This guide explains how Spring Boot handles logging through Commons Logging, recommends using SLF4J as a facade, shows code examples, details log elements, demonstrates how to enable DEBUG, configure console colors, file output, rolling policies, level control, and custom formats for effective backend logging.

Configurationdebugfile-output
0 likes · 11 min read
Master Spring Boot Logging with SLF4J: Configuration, Levels, and Best Practices
Senior Brother's Insights
Senior Brother's Insights
Dec 25, 2021 · Information Security

Why Logback 1.2.7 Is Vulnerable and How to Safely Upgrade

This article explains the Logback CVE‑2021‑42550 vulnerability affecting versions before 1.2.9, outlines the three conditions required for exploitation, compares its severity to Log4j, and provides concrete steps—including upgrading to 1.2.9 and setting the configuration file read‑only—to protect Java applications.

CVE-2021-42550Vulnerabilityjava
0 likes · 5 min read
Why Logback 1.2.7 Is Vulnerable and How to Safely Upgrade
Top Architect
Top Architect
Dec 8, 2021 · Backend Development

Resolving Java Logging Framework Conflicts in SpringBoot and Dubbo Projects

This article explains why multiple Java logging frameworks often clash in SpringBoot and Dubbo applications, identifies common causes such as transitive dependencies and duplicate versions, and provides step‑by‑step Maven configurations and adaptation techniques to unify logging with SLF4J and Logback.

Dubbojavalogback
0 likes · 13 min read
Resolving Java Logging Framework Conflicts in SpringBoot and Dubbo Projects
Code Ape Tech Column
Code Ape Tech Column
Oct 13, 2021 · Backend Development

Best Practices for Java Logging and Custom Logback Appender

This article explains Java logging fundamentals, the four standard log levels, practical best‑practice guidelines, and how to implement a custom Logback appender that injects a request ID for better traceability in distributed systems using ELK and Kafka.

log4jlogback
0 likes · 6 min read
Best Practices for Java Logging and Custom Logback Appender
Java Backend Technology
Java Backend Technology
Oct 10, 2021 · Backend Development

15 Essential Logging Practices Every Java Backend Engineer Should Follow

Effective logging is crucial for debugging and accountability; this guide presents fifteen practical recommendations—from selecting appropriate log levels and formatting to using SLF4J, asynchronous output, and avoiding common pitfalls—designed to help Java developers write clear, performant, and maintainable logs.

logbackloggingperformance
0 likes · 12 min read
15 Essential Logging Practices Every Java Backend Engineer Should Follow
macrozheng
macrozheng
Sep 24, 2021 · Backend Development

15 Essential Logging Practices to Debug Faster and Avoid Blame

This article presents 15 practical logging best‑practice recommendations for Java developers, covering log level selection, formatting, conditional logging, performance‑friendly placeholders, asynchronous output, proper exception handling, and log file organization to improve debugging efficiency and maintainable production systems.

best practicesdebugginglogback
0 likes · 11 min read
15 Essential Logging Practices to Debug Faster and Avoid Blame
Top Architect
Top Architect
Sep 4, 2021 · Backend Development

Understanding Spring Boot Default Logging Configuration and Customization

This article explains Spring Boot's default logging setup using SLF4J and Logback, demonstrates how to view log levels in a test class, shows how to modify log levels via application properties, and details the underlying XML configuration files and how to customize them for different environments.

Spring Bootbackend-developmentjava
0 likes · 13 min read
Understanding Spring Boot Default Logging Configuration and Customization
Java Interview Crash Guide
Java Interview Crash Guide
Jun 4, 2021 · Backend Development

Why Logback Beats Log4j: A Deep Dive into Configuration and Features

Logback, the open‑source logging framework created by the log4j founder, offers faster performance, extensive testing, native SLF4J support, flexible configuration, automatic reload, advanced appenders and rolling policies, making it a superior replacement for log4j in modern Java backend applications.

backend-developmentjavalogback
0 likes · 22 min read
Why Logback Beats Log4j: A Deep Dive into Configuration and Features
Java Captain
Java Captain
Feb 17, 2021 · Backend Development

Understanding Java Logging Frameworks and Their Relationships

This article explains the evolution, relationships, and dependencies of Java logging frameworks such as JCL, SLF4J, Log4j, Logback, and JUL, and provides practical guidance on configuring and unifying logging output across projects, including common pitfalls and adapter usage.

jcllog4jlogback
0 likes · 7 min read
Understanding Java Logging Frameworks and Their Relationships
21CTO
21CTO
Dec 17, 2020 · Backend Development

Mastering Java Logging: Understanding Frameworks, Dependencies, and Best Practices

This article explains the evolution and relationships of Java logging libraries, shows how to resolve common issues like missing logs or jar conflicts, and provides practical guidance for configuring unified logging across frameworks such as SLF4J, Logback, Log4j, and Spring.

Backendjavalog4j
0 likes · 8 min read
Mastering Java Logging: Understanding Frameworks, Dependencies, and Best Practices
Programmer DD
Programmer DD
Dec 17, 2020 · Backend Development

Mastering Java Logging: Navigate Log4j, SLF4J, Logback, and JUL

This guide explains the relationships and dependencies among Java logging frameworks such as Log4j, SLF4J, Logback, and JUL, shows how to resolve common issues like missing logs or jar conflicts, and provides practical steps to unify logging output across different modules and libraries.

JULbackend-developmentjava
0 likes · 8 min read
Mastering Java Logging: Navigate Log4j, SLF4J, Logback, and JUL
JavaEdge
JavaEdge
Dec 6, 2020 · Backend Development

Why Does My Logback Configuration Duplicate Logs? Common Pitfalls and Fixes

The article explains typical Logback misconfigurations—such as logger inheritance errors and improperly set LevelFilter—that cause duplicate log entries, and provides step‑by‑step corrections like disabling additivity and configuring filter attributes to eliminate redundant logging.

DuplicateLogsLevelFilterThresholdFilter
0 likes · 5 min read
Why Does My Logback Configuration Duplicate Logs? Common Pitfalls and Fixes
Top Architect
Top Architect
Nov 6, 2020 · Backend Development

Configuring Logback Logging in Spring Boot: XML, Properties, and Code Examples

This article provides a comprehensive guide to configuring Logback in Spring Boot, covering Maven dependencies, SLF4J usage, step‑by‑step XML setup, application.yml integration, controller logging code, Lombok shortcuts, appender types, logger definitions, log levels, rolling policies, filters, and best practices for backend development.

ConfigurationSpring Bootjava
0 likes · 20 min read
Configuring Logback Logging in Spring Boot: XML, Properties, and Code Examples
Programmer DD
Programmer DD
Oct 20, 2020 · Backend Development

Mastering Java Logging: SLF4J, Logback, and Spring Boot Configuration Guide

This article explains how to choose and integrate Java logging frameworks, use SLF4J with Logback, understand Spring Boot's default logging setup, customize log output, and switch between implementations such as Log4j2, providing practical code snippets and configuration examples.

ConfigurationSpring Bootjava
0 likes · 10 min read
Mastering Java Logging: SLF4J, Logback, and Spring Boot Configuration Guide
Architecture Digest
Architecture Digest
Oct 19, 2020 · Backend Development

Performance Comparison of Logback and Log4j2 Synchronous vs Asynchronous Logging

This article revisits a previous logback configuration test, expands the sample size and repeats the measurements using JMeter, JProfile, and New Relic APM to compare synchronous and asynchronous logging in Logback and Log4j2, revealing that asynchronous logging reduces log latency but only marginally improves overall TPS, while Log4j2’s async implementation can boost TPS up to six times.

Performance Testingasynchronous loggingjava
0 likes · 8 min read
Performance Comparison of Logback and Log4j2 Synchronous vs Asynchronous Logging
Java Backend Technology
Java Backend Technology
Aug 13, 2020 · Backend Development

Why Asynchronous Logging Doesn’t Boost TPS – Real Test Results with Logback and Log4j2

Through extensive JMeter and APM testing on a 6‑core, 8 GB server, this article reveals that switching Logback from synchronous to asynchronous logging yields minimal TPS improvement, explains why, and demonstrates that Log4j2’s async implementation can achieve up to six‑fold performance gains.

Performance Testingasynchronous loggingjava
0 likes · 8 min read
Why Asynchronous Logging Doesn’t Boost TPS – Real Test Results with Logback and Log4j2
macrozheng
macrozheng
Jun 18, 2020 · Operations

Master ELK Log Collection: Docker‑Compose, Logback & Logstash for SpringBoot

This guide walks you through building a production‑ready ELK log collection system using Docker‑Compose, configuring Logback to route debug, error, business, and record logs, setting up Logstash pipelines, and leveraging Kibana for powerful log visualization in SpringBoot applications.

DockerELKKibana
0 likes · 21 min read
Master ELK Log Collection: Docker‑Compose, Logback & Logstash for SpringBoot
Programmer DD
Programmer DD
Sep 25, 2019 · Backend Development

Boost Spring Boot Performance: Master Logback Async Logging & File Separation

This article explains how to configure Logback in a Spring Boot application to separate logs by level into different files, implement asynchronous logging to reduce disk I/O, and demonstrates a performance test showing a ten‑fold throughput increase, while also detailing the underlying async mechanism.

Performance TestingSpring Bootasynchronous logging
0 likes · 10 min read
Boost Spring Boot Performance: Master Logback Async Logging & File Separation
Youzan Coder
Youzan Coder
Jul 17, 2019 · Backend Development

How Logback Turns a Simple Log Call into a Fully Processed Log Entry

This article walks through Logback's internal workflow—from obtaining a Logger and issuing a log call, through filter evaluation, level checking, event creation, formatting, and finally writing to various appenders—while also covering file‑rolling policies and configuration details.

AppenderBackendRollingFile
0 likes · 11 min read
How Logback Turns a Simple Log Call into a Fully Processed Log Entry