org.apache.log4j.EnhancedPatternLayout Java Examples
The following examples show how to use
org.apache.log4j.EnhancedPatternLayout.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommonTestAppender.java From datawave with Apache License 2.0 | 5 votes |
public CommonTestAppender() { this.resetLogs(); this.setName("CommonTestAppender"); this.setLayout(new EnhancedPatternLayout(EnhancedPatternLayout.TTCC_CONVERSION_PATTERN)); this.setImmediateFlush(true); }
Example #2
Source File: Main.java From swingsane with Apache License 2.0 | 5 votes |
private static void initLog4J() { ConsoleAppender console = new ConsoleAppender(); console.setLayout(new EnhancedPatternLayout("%d %-5p [%t] %c.%M - %m%n %throwable{short}")); console.setThreshold(Level.DEBUG); console.activateOptions(); Logger.getRootLogger().addAppender(console); }