Tagged articles
4 articles
Page 1 of 1
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.

ConfigurationPatternLayoutRollingFile
0 likes · 21 min read
Comprehensive Guide to Configuring Log4j2: Dependencies, Configuration Files, PatternLayout, Appenders, Loggers, and Asynchronous Logging
Code Ape Tech Column
Code Ape Tech Column
Jul 31, 2021 · Backend Development

Understanding Log4j2 RollingFileAppender: Configuration, Policies, and Strategies

This article explains how Log4j2's RollingFileAppender works, covering the concepts of rollover, the various TriggeringPolicy options, DefaultRolloverStrategy behavior, DeleteAction configuration, and provides sample XML configurations and a Java demo to illustrate time‑based, size‑based, and composite rollover scenarios.

ConfigurationJavaRollingFile
0 likes · 13 min read
Understanding Log4j2 RollingFileAppender: Configuration, Policies, and Strategies
Selected Java Interview Questions
Selected Java Interview Questions
Jun 10, 2021 · Backend Development

Understanding Log4j2 RollingFile Appender: TriggeringPolicy, RolloverStrategy, and DeleteAction

This article explains how Log4j2's RollingFileAppender works, covering the roles of TriggeringPolicy and RolloverStrategy, showing various filePattern configurations, detailing the DefaultRolloverStrategy max parameter, introducing DeleteAction for custom file cleanup, and providing Java demo code and test configurations.

DeleteActionJavaRollingFile
0 likes · 15 min read
Understanding Log4j2 RollingFile Appender: TriggeringPolicy, RolloverStrategy, and DeleteAction
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.

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