Skip to content
Discussion options

You must be logged in to vote

I can't see your project but you are missing this property (first one):

logging.appender.console.encoder=pattern
logging.encoder.console.pattern=%d{HH:mm:ss.SSS} - %msg%n

I found it rather hard to get gradlew run to get system properties so I ask chatgpt and this is what it came up for me and works:

//build.gradle
tasks.named('run') {
    systemProperty 'logging.appender.console.encoder', 'pattern'
    systemProperty 'logging.encoder.console.pattern', '%d{HH:mm:ss.SSS} - %msg%n'
}

This is probably something we should fix though. OOB we do not use the pattern encoder for speed reasons so you need to tell the console appender to use the pattern encoder.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Treutler
Comment options

You must be logged in to vote
1 reply
@agentgt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants