Skip to content

Commit e3b3dff

Browse files
danidemiKevinGilmore
authored andcommitted
Pull Request for fix to "A Guide to Rolling File Appenders" article. (eugenp#919)
* First test with log4j rolling appenders * small fix * Log4j rolling appender * First set up with rolling file on log4j 2 * Added logback code. * log4j2 more detailed example * log4j2 more detailed example * Improved names and examples * Fixed configurations * improved configs * formatted * Final fix * fixed formatting * Formatting fix * Fix sample apps to avoid try / catch * Fix request to replace files * Fix end lines * Log4j2 logger is shot down at the end.
1 parent 1a17166 commit e3b3dff

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎log4j/src/main/java/com/baeldung/log4j2/Log4j2RollingExample.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.baeldung.log4j2;
22

3-
import java.util.stream.IntStream;
4-
53
import org.apache.logging.log4j.LogManager;
64
import org.apache.logging.log4j.Logger;
75

@@ -14,6 +12,7 @@ public static void main(String[] args) throws InterruptedException {
1412
logger.info("This is the {} time I say 'Hello World'.", i);
1513
Thread.sleep(100);
1614
}
15+
LogManager.shutdown();
1716
}
1817

1918
}

0 commit comments

Comments
 (0)