Tag

Slf4j

0 views collected around this technical thread.

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.

ConcurrencyJavaMyBatis
0 likes · 8 min read
Why System.out.println() Can Kill Your MyBatis Performance and How to Fix It
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 LoggingLogbackPerformance Testing
0 likes · 15 min read
Performance Comparison and Usage Guide for Logback vs Log4j2 in Java Applications
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
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.

JavaLog MaskingSecurity
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.

LogbackMavenSlf4j
0 likes · 13 min read
Proper Use of Java Logging Systems and Frameworks
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 7, 2023 · Backend Development

Implement Simple Request Tracing in SpringBoot 3.2 with SLF4J and MDC

This tutorial shows how to build a lightweight request‑tracing solution in SpringBoot 3.2 using SLF4J, MDC, custom filters, logback configuration, and a global ResponseBodyAdvice to log and return trace IDs for improved debugging and observability.

JavaMDCSlf4j
0 likes · 10 min read
Implement Simple Request Tracing in SpringBoot 3.2 with SLF4J and MDC
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)
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.

Auto‑ConfigurationJavaSPI
0 likes · 13 min read
Master Java SPI: From Service Provider Interface to Spring Boot Auto‑Configuration
Architecture Digest
Architecture Digest
Jan 28, 2023 · Backend Development

Understanding the Delegation Pattern through SLF4J, JDBC, and Dubbo

This article explains how the delegation pattern is applied in Java server development by examining SLF4J's facade design, JDBC's driver registration, and Apache Dubbo's SPI mechanism, providing practical guidance on when and how to use delegation in backend projects.

DubboJDBCJava
0 likes · 18 min read
Understanding the Delegation Pattern through SLF4J, JDBC, and Dubbo
vivo Internet Technology
vivo Internet Technology
Jan 11, 2023 · Backend Development

Understanding the Delegation Pattern Through SLF4J, JDBC, and Dubbo Case Studies

The article explains how the delegation pattern—combining a fixed core processing path with extensible open interfaces—underpins Java toolkits such as SLF4J, JDBC, and Dubbo, illustrating its implementation steps, when to apply it, and pitfalls like reverse delegation loops.

Apache DubboJDBCJava Logging
0 likes · 17 min read
Understanding the Delegation Pattern Through SLF4J, JDBC, and Dubbo Case Studies
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.

Decorator PatternMDCMultithreading
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.

DecoratorPatternJavaMDC
0 likes · 10 min read
Using SLF4J MDC to Correlate Logs Across Threads and Asynchronous Tasks in Java
Top Architect
Top Architect
Sep 7, 2022 · Backend Development

Using Logback with SLF4J in Spring Boot: Configuration, Customization, and Best Practices

This article explains how to integrate Logback with SLF4J in Spring Boot, covering dependency setup, default and custom configurations via logback‑spring.xml, detailed element descriptions, and best‑practice logging code examples, including file rolling policies and performance considerations.

JavaLogbackSlf4j
0 likes · 23 min read
Using Logback with SLF4J in Spring Boot: Configuration, Customization, and Best Practices
Top Architect
Top Architect
Aug 20, 2022 · Backend Development

Using Logback and SLF4J for Logging in Spring Boot Applications

This article explains why Logback is the preferred logging framework for Spring Boot, shows how to add the necessary dependencies, configure logback‑spring.xml with appenders, encoders, filters and rolling policies, and provides best practices for efficient log statements in Java code.

JavaLogbackSlf4j
0 likes · 21 min read
Using Logback and SLF4J for Logging in Spring Boot Applications
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.

Java LoggingLogbackSlf4j
0 likes · 21 min read
Using Logback and SLF4J for Logging in Spring Boot
Top Architect
Top Architect
Feb 19, 2022 · Backend Development

IntelliJ Platform Drops Log4j for java.util.logging: Migration Guide and Security Rationale

JetBrains announced that the IntelliJ platform will discontinue Log4j usage, recommending java.util.logging as the standard logging framework, and provides detailed migration steps, security reasons, and version information for developers to adapt their plugins and dependencies.

IntelliJJavaSlf4j
0 likes · 6 min read
IntelliJ Platform Drops Log4j for java.util.logging: Migration Guide and Security Rationale
Top Architect
Top Architect
Jan 17, 2022 · Backend Development

Using SLF4J MDC to Correlate Logs Across Threads in Java Applications

This article explains how to employ SLF4J's MDC feature to attach a request identifier to log entries, demonstrates why it fails in asynchronous threads, and shows how to fix the issue with a decorator‑style MDCRunnable that propagates the MDC context to child threads and thread pools.

ConcurrencyDecorator PatternJava
0 likes · 10 min read
Using SLF4J MDC to Correlate Logs Across Threads in Java Applications
Java Architecture Diary
Java Architecture Diary
Dec 28, 2021 · Backend Development

Why tinylog2 Is the Lightweight, Secure Java Logging Solution You Need

tinylog2 is an open-source, lightweight Java logging framework that supports JVM languages, offers a static Logger API, SLF4J adaptation, multiple output options, configurable properties or YAML/JSON, high performance benchmarks, and a small footprint, making it a secure alternative to log4j2.

JavaSlf4jconfiguration
0 likes · 5 min read
Why tinylog2 Is the Lightweight, Secure Java Logging Solution You Need
Laravel Tech Community
Laravel Tech Community
Dec 14, 2021 · Backend Development

Apache Log4j 2.16.0 Released – New Features, Security Fixes, and Upgrade Guidance

Apache Log4j 2.16.0 has been released, offering updated SLF4J adapters, disabling JNDI by default to mitigate CVE‑2021‑44228, removing message lookups, and requiring Java 8+, with detailed upgrade instructions and links to download and issue trackers.

JavaSecuritySlf4j
0 likes · 4 min read
Apache Log4j 2.16.0 Released – New Features, Security Fixes, and Upgrade Guidance
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