Skip to content

Commit

Permalink
Emulates spring logback pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoutanov committed Jun 10, 2019
1 parent 7d88893 commit 8fe13fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ appenders=console
appender.console.type=Console
appender.console.name=STDOUT
appender.console.layout.type=PatternLayout
appender.console.layout.pattern=%highlight{%d{HH:mm:ss.SSS} [%t] %-5level %C{1.}.%M:%L - %msg%n}{FATAL=red, ERROR=red, WARN=yellow, INFO=default, DEBUG=grey, TRACE=green}{STYLE=Logback}
appender.console.layout.pattern=%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} %highlight{${LOG_LEVEL_PATTERN:-%5p}}{FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=green, DEBUG=green bold, TRACE=blue} %style{${sys:PID}}{magenta} [%15.15t] %style{%-40.40C{1.}}{cyan} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}

rootLogger.level=info
rootLogger.appenderRefs=stdout
Expand Down

0 comments on commit 8fe13fd

Please sign in to comment.