Tagged articles
68 articles
Page 1 of 1
Architect-Kip
Architect-Kip
Mar 2, 2026 · Backend Development

Mastering Java Logging: Framework Choices, Level Rules, and Best Practices

This guide details how to select a Java logging framework, defines a decision tree for when to log, maps log levels (ERROR, WARN, INFO, DEBUG) to concrete scenarios, provides code‑handling principles, outlines prohibited logging patterns, and includes a quick reference for alerting rules.

Javabest practiceslog levels
0 likes · 12 min read
Mastering Java Logging: Framework Choices, Level Rules, and Best Practices
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
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.

Backend DevelopmentJavaLombok
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.

JavaLombokSpring Boot
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
Java Architect Essentials
Java Architect Essentials
Jun 14, 2025 · Backend Development

Why System.out.println() Can Kill Your MyBatis Performance and How to Fix It

This article explains why MyBatis's default StdOutImpl logging, which relies on System.out.println, blocks threads and creates severe concurrency bottlenecks, and demonstrates how to replace it with asynchronous logging implementations like Slf4jImpl, configure log levels, and even create custom Log classes for optimal performance.

JavaMyBatisconcurrency
0 likes · 8 min read
Why System.out.println() Can Kill Your MyBatis Performance and How to Fix It
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
dbaplus Community
dbaplus Community
Dec 9, 2024 · Backend Development

Master Java Logging: Framework Choices, Best Practices, and Real-World Tips

This guide explains why System.out.println is unsuitable for production, compares Java logging frameworks such as Log4j2, Logback and SLF4J, shows how to integrate them with code and Lombok, and provides comprehensive best‑practice recommendations on log levels, formatting, volume control, rolling policies, asynchronous logging and log aggregation.

Javabest practiceslog4j2
0 likes · 18 min read
Master Java Logging: Framework Choices, Best Practices, and Real-World Tips
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.

JavaSpring Bootbest practices
0 likes · 17 min read
Master Java Logging: Frameworks, Best Practices, and Real‑World Tips
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.

JavaSpring Bootlog4j2
0 likes · 15 min read
Master Java Logging: Configure Logback & Log4j2 in Spring Boot
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 14, 2024 · Backend Development

Master Java Logging: 12 Essential Practices for Clean, Efficient Logs

This article presents twelve practical guidelines for Java logging, covering interface‑layer usage, avoiding separator lines, preventing logging‑induced exceptions, leveraging Fastjson features, preserving exception stacks, limiting message length, merging stack traces, skipping costly placeholders, avoiding console output, discarding redundant utilities, and adhering to Alibaba's logging specification.

Error Handlingbest practicesperformance
0 likes · 11 min read
Master Java Logging: 12 Essential Practices for Clean, Efficient Logs
Yum! Tech Team
Yum! Tech Team
Feb 6, 2024 · Information Security

Log Data Masking Solution for Java Spring Applications

This article analyzes the growing risk of personal data leakage, defines data masking, compares common log‑masking techniques, and presents a comprehensive Java‑Spring solution that combines annotation‑based marking, custom Jackson serializers, and extended SLF4J methods to achieve precise, low‑overhead log masking.

data maskinglog maskingslf4j
0 likes · 8 min read
Log Data Masking Solution for Java Spring Applications
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.

Configurationlog4jlogging
0 likes · 13 min read
Proper Use of Java Logging Systems and Frameworks
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)
macrozheng
macrozheng
Mar 15, 2023 · Backend Development

Master Java SPI: From Service Provider Interface to Spring Boot Auto‑Configuration

This article explains Java’s Service Provider Interface (SPI) mechanism, compares it with traditional APIs, demonstrates how to define interfaces, implement services, and discover them using ServiceLoader, and shows real‑world applications such as Spring Boot auto‑configuration and logging frameworks like SLF4J.

JavaSPIServiceLoader
0 likes · 13 min read
Master Java SPI: From Service Provider Interface to Spring Boot Auto‑Configuration
Top Architect
Top Architect
Nov 24, 2022 · Backend Development

Using SLF4J MDC to Correlate Logs Across Threads in Java

This article explains how to use SLF4J's MDC feature to attach a request ID to log entries, demonstrates the limitation of MDC in asynchronous threads, and provides a decorator‑based solution (MDCRunnable) that propagates the context to child threads and thread pools.

JavaThreadLocalmdc
0 likes · 10 min read
Using SLF4J MDC to Correlate Logs Across Threads in Java
Code Ape Tech Column
Code Ape Tech Column
Nov 18, 2022 · Backend Development

Using SLF4J MDC to Correlate Logs Across Threads and Asynchronous Tasks in Java

This article explains how to use SLF4J's MDC to attach a request identifier to log entries, demonstrates the limitation of MDC in asynchronous threads, and provides a decorator‑pattern solution (MDCRunnable) that propagates the context, enabling reliable log correlation across threads in Java backend applications.

BackendDecoratorPatternJava
0 likes · 10 min read
Using SLF4J MDC to Correlate Logs Across Threads and Asynchronous Tasks in Java
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
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.

JavaSpring BootXML
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
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
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
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
Su San Talks Tech
Su San Talks Tech
Sep 25, 2021 · Backend Development

15 Essential Logging Practices Every Java Developer Should Follow

This article presents fifteen practical guidelines for effective Java logging, covering log levels, parameter tracing, formatting, conditional logging, performance‑friendly APIs, asynchronous output, proper exception handling, and log file organization to help developers quickly locate issues and maintain clean, efficient logs.

DebuggingJavabest practices
0 likes · 10 min read
15 Essential Logging Practices Every Java Developer 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.

Debuggingbest practiceslogback
0 likes · 11 min read
15 Essential Logging Practices to Debug Faster and Avoid Blame
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 23, 2021 · Backend Development

15 Best Practices for Effective Log Printing in Java Applications

This article presents fifteen practical guidelines for logging in Java, covering proper log levels, parameter logging, formatting, conditional logging, log level guards, SLF4J usage, placeholder syntax, asynchronous output, exception handling, production debug policies, avoiding duplicate logs, file separation, and detailed logging for core modules.

DebuggingJavaslf4j
0 likes · 9 min read
15 Best Practices for Effective Log Printing in Java Applications
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jul 14, 2021 · Backend Development

Mastering SLF4J MDC for Precise Log Tracing in Multi‑Threaded Java Applications

This article explains how SLF4J’s Mapped Diagnostic Context (MDC) leverages ThreadLocal to embed trace and span identifiers into log messages, demonstrates configuring log4j2 patterns, shows code for injecting and clearing MDC values during span lifecycle, and addresses MDC propagation in asynchronous threads using Transmittable ThreadLocal.

ThreadLocallog4j2mdc
0 likes · 4 min read
Mastering SLF4J MDC for Precise Log Tracing in Multi‑Threaded Java Applications
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 Interview Crash Guide
Java Interview Crash Guide
Apr 7, 2021 · Backend Development

How to Resolve Java Logging Framework Conflicts in SpringBoot & Dubbo

This article explains why multiple Java logging frameworks often clash in SpringBoot and Dubbo projects, outlines the root causes such as transitive dependencies and duplicate versions, and provides step‑by‑step Maven configurations and adaptation techniques to unify logging under a single implementation.

DubboJavamaven
0 likes · 13 min read
How to Resolve Java Logging Framework Conflicts in SpringBoot & Dubbo
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.

Backend DevelopmentJULJava
0 likes · 8 min read
Mastering Java Logging: Navigate Log4j, SLF4J, Logback, and JUL
Programmer DD
Programmer DD
Nov 21, 2020 · Backend Development

How MyBatis Handles Logging: From SLF4J Facade to Dynamic Proxies

This article explains MyBatis's logging architecture, covering the supported log implementations, the role of SLF4J, how MyBatis selects and configures a logger via LogFactory, and the use of JDK dynamic proxies to route JDBC logging through separate logger objects.

BackendDynamic ProxyJava
0 likes · 8 min read
How MyBatis Handles Logging: From SLF4J Facade to Dynamic Proxies
Top Architect
Top Architect
Nov 16, 2020 · Backend Development

Understanding MyBatis Logging Implementation and LogFactory Mechanism

This article explains how MyBatis loads and categorizes logging implementations, details the role of SLF4J and other frameworks, describes the LogFactory adapter selection process, and shows how JDBC log proxies use dynamic proxies to output SQL execution details.

JDBCJavaLogFactory
0 likes · 8 min read
Understanding MyBatis Logging Implementation and LogFactory Mechanism
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.

ConfigurationJavaSpring Boot
0 likes · 10 min read
Mastering Java Logging: SLF4J, Logback, and Spring Boot Configuration Guide
Code Ape Tech Column
Code Ape Tech Column
Sep 29, 2020 · Backend Development

How to Switch Logging Frameworks in Spring Boot Using SLF4J

This article explains how to seamlessly replace Spring Boot's default Logback logging framework with alternatives like Log4j2 by leveraging the SLF4J facade, covering version requirements, dependency management, configuration files, and detailed XML examples for various log levels.

BackendJavaSpring Boot
0 likes · 11 min read
How to Switch Logging Frameworks in Spring Boot Using SLF4J
Java Captain
Java Captain
Jun 25, 2019 · Backend Development

Best Practices for Using SLF4J Logging in Java

This guide explains why to use the SLF4J façade with Logback, when to log, proper parameterized message formats, level‑specific conventions for ERROR, WARN, INFO, DEBUG, and TRACE, and provides concrete code examples for clean, performant logging in Java applications.

Backend DevelopmentJavalogback
0 likes · 10 min read
Best Practices for Using SLF4J Logging in Java
Beike Product & Technology
Beike Product & Technology
Nov 9, 2018 · Backend Development

Comprehensive Overview of Java Logging Frameworks and SLF4J Integration

This article provides a detailed overview of Java logging frameworks—including Log4j, Log4j 2, Commons Logging, SLF4J, Logback, and JUL—covers their history, relationships, implementation mechanisms, practical selection guidelines, SLF4J usage patterns, source‑code analysis, bridge solutions for legacy APIs, and strategies for excluding unwanted logging dependencies.

Backendcommons-logginglog4j
0 likes · 16 min read
Comprehensive Overview of Java Logging Frameworks and SLF4J Integration
Java Captain
Java Captain
May 28, 2018 · Backend Development

Overview of Common Java Logging Frameworks and Their Usage

This article provides a comprehensive overview of the major Java logging frameworks—including Log4j, Log4j2, Commons Logging, SLF4J, Logback, and JUL—covers their history, relationships, implementation mechanisms, and offers practical guidance on selecting and integrating them in projects.

FrameworkJULcommons-logging
0 likes · 13 min read
Overview of Common Java Logging Frameworks and Their Usage
dbaplus Community
dbaplus Community
Nov 9, 2017 · Operations

Mastering Log Levels: Practical Guidelines for Effective Logging

This article explains the purpose of each log level, when to write logs, performance impacts, and concrete best‑practice patterns for INFO, DEBUG, WARN and ERROR in Java applications, providing actionable templates and configuration tips to build a robust logging system.

Operationsbest practiceslog levels
0 likes · 19 min read
Mastering Log Levels: Practical Guidelines for Effective Logging
Meituan Technology Team
Meituan Technology Team
Feb 17, 2017 · Backend Development

How Dynamic Log Level Adjustment Boosts Reliability in High‑Throughput Delivery Services

The article explains the design, implementation, and operational benefits of a middleware component that dynamically adjusts log levels in Java services, helping large‑scale delivery platforms balance comprehensive debugging information with system performance and avoid catastrophic failures during peak traffic.

Backend PerformanceJavaLog Management
0 likes · 13 min read
How Dynamic Log Level Adjustment Boosts Reliability in High‑Throughput Delivery Services