add proper logging
This commit is contained in:
parent
8427003d37
commit
21ed28b3a1
|
@ -6,9 +6,18 @@ def environment = System.getenv("ENVIRONMENT") ?: "production"
|
|||
def defaultLevel = INFO
|
||||
def defaultTarget = ConsoleTarget.SystemErr
|
||||
|
||||
appender("FILE", FileAppender) {
|
||||
file = "logs_meta.log"
|
||||
append = true
|
||||
|
||||
encoder(PatternLayoutEncoder) {
|
||||
pattern = "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{35} - %msg%n"
|
||||
}
|
||||
}
|
||||
|
||||
appender("CONSOLE", ConsoleAppender) {
|
||||
encoder(PatternLayoutEncoder) {
|
||||
pattern = "WAWA:: %boldGreen(%d{yyyy-MM-dd}) %boldYellow(%d{HH:mm:ss}) %gray(|) %highlight(%5level) %gray(|) %boldMagenta(%40.40logger{40}) %gray(|) %msg%n"
|
||||
pattern = "%boldGreen(%d{yyyy-MM-dd}) %boldYellow(%d{HH:mm:ss}) %gray(|) %highlight(%5level) %gray(|) %boldMagenta(%40.40logger{40}) %gray(|) %msg%n"
|
||||
|
||||
withJansi = true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue