When shutting down the LogManager:
LogManager.shutdown();
all buffered logs get flushed.
More Related Contents:
- How do you determine the ideal buffer size when using FileInputStream?
- How to Create a Custom Appender in log4j2?
- Setting a log file name to include current date in Log4j
- log4j redirect stdout to DailyRollingFileAppender
- Configuring Log4j Loggers Programmatically
- How can I create 2 separate log files with one log4j config file?
- Where should I put the log4j.properties file?
- Change location of log4j.properties
- Websphere all logs are going to SystemOut.log
- Is it worth to use slf4j with log4j2
- How to send java.util.logging to log4j?
- How to configure log4j with a properties file
- How to disable Spring logging DEBUG messages?
- Log4j: How to configure simplest possible file logging?
- how to make log4j to write to the console as well
- How to give environmental variable path for file appender in configuration file in log4j
- Production settings file for log4j?
- Redirect System.out and System.err to slf4j
- Are there technical reasons to prefer using logback instead of log4j?
- Where do I configure log4j in a JUnit test class?
- Log4j, configuring a Web App to use a relative path
- How to specify Log4J 2.x config location?
- Configuring RollingFileAppender in log4j
- log4j: package-specific logging
- Log runtime Exceptions in Java using log4j
- Java Log Viewer [closed]
- logging with AOP in spring?
- How to create different log files for different packages using same log4j logger?
- Log4j2 (2.1) custom plugin not detected by packages attribute
- Log4J: Strategies for creating Logger instances