Skip to content

HTTP Access Log to both file and console #43413

Answered by cescoffier
jfslin asked this question in Q&A
Discussion options

You must be logged in to vote

This works:

quarkus.http.access-log.enabled=true
quarkus.http.access-log.log-to-file=false

quarkus.log.handler.file.access-log.enable=true
quarkus.log.handler.file.access-log.path=application.log
quarkus.log.handler.file.access-log.format=%d{yyyy-MM-dd HH:mm:ss} %s%e%n

quarkus.log.handler.console.access-console.format=%d{yyyy-MM-dd HH:mm:ss} %s%e%n


quarkus.log.category."io.quarkus.http.access-log".handlers=access-log,access-console
quarkus.log.category."io.quarkus.http.access-log".use-parent-handlers=false

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@cescoffier
Comment options

@cescoffier
Comment options

Answer selected by cescoffier
@phillip-kruger
Comment options

@jfslin
Comment options

@cescoffier
Comment options

@jfslin
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
3 participants