Log4j
Less than 1 minute
Log4j 관련
예제: log4j2.properties
예제
@tab:active 기본
status=warn
name=DemoLog
appenders = stdout
# 콘솔 출력 설정
appender.stdout.type = Console
appender.stdout.name = STDOUT
appender.stdout.layout.type = PatternLayout
appender.stdout.layout.pattern = [%t] %-5p : %c.%M(%F:%L) %-80m %n
appender.stdout.filter.threshold.type = ThresholdFilter
appender.stdout.filter.threshold.level = debug
rootLogger.level = debug
rootLogger.appenderRef.stdout.additivity = false
rootLogger.appenderRef.stdout.ref = STDOUT
Layout Pattern(s)
%d{yyyy-MM-dd HH:mm:ss} %-5p : $c.%M(%F:$L) %-80m %n
[%t] %-5p : %c.%M(%F:%L) %-80m %n
%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n
%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n