Tag

Java Logging

0 views collected around this technical thread.

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
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
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 LoggingLogbackPerformance Testing
0 likes · 14 min read
Performance Comparison and Usage Guide for Log4j2 vs Logback in Java
Selected Java Interview Questions
Selected Java Interview Questions
Sep 17, 2023 · Backend Development

Comprehensive Guide to Configuring Log4j2: Dependencies, Configuration Files, PatternLayout, Appenders, Loggers, and Asynchronous Logging

This article provides a detailed tutorial on Log4j2, covering how to add Maven dependencies, write XML configuration files, use PatternLayout placeholders, configure various Appenders and Filters, set up Loggers, enable asynchronous logging, and fine‑tune rolling file policies for Java backend applications.

Async loggingConfigurationJava Logging
0 likes · 21 min read
Comprehensive Guide to Configuring Log4j2: Dependencies, Configuration Files, PatternLayout, Appenders, Loggers, and Asynchronous Logging
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
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