1. The problem I’m having:
My caddy file has logging for caddy and for my reverse proxy blocks, but only the caddy file shows time stamps. Why would this be? How can I add time stamps to the RP logs?
My caddy file has logging for caddy and for my reverse proxy blocks, but only the caddy file shows time stamps. Why would this be? How can I add time stamps to the RP logs?
2. Error messages and/or full log output:
RP log:
{"level":"error","ts":1788184850.169316,"logger":"http.log.access.log0","msg":"handled request" ...
caddy log:
2026/09/01 17:35:14 e[34mINFOe[0m http.auto_https enabling automatic HTTP->HTTPS redirects
3. Caddy version:
v2.11.4
4. How I installed and ran Caddy:
caddy run
a. System environment:
Windows
b. Command:
c. Service/unit/compose file:
d. My complete Caddy config:
{
#log stdout
log caddy-log {
output file caddy.log {
roll_local_time
}
format console {
time_format wall
time_local
}
}
email blah@blah.net
default_sni someplace.com
servers :8443 {
protocols h2 h1
}
}
(logging) {
log {
output file "caddyLog-{args[0]}.log" {
roll_local_time
}
format console {
time_format wall
time_local
}
format filter {
fields {
request>headers>Authorization delete
}
}
}
}
#file server
web.someplace.com:8443 {
import logging web
reverse_proxy :8080
encode zstd gzip
header Strict-Transport-Security "max-age=31536000"
}
5. Links to relevant resources:
Type here