caddy pretty color log format
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
501 B

log http.log.access {
include http.log.access
output file /var/log/caddy/access.log
format formatted "[{ts}] {request>remote_ip} {request>headers>X-Forwarded-For} {request>method} {request>host}{request>uri} {status} {request>headers>User-Agent} {request>headers>Referer}" {
time_format "02/Jan/2006:15:04:05-0700"
}
}
log {
exclude http.log.access
output file /var/log/caddy/caddy.log
format json
}