How to set log time to +0800

log content:
2020/12/10 03:30:44.469 info http.log.access.log0 handled request
By default UTC time , i want set +0800 China Shanghai timezone.

I admit the documentation here is lacking but yours is the first request I’ve seen to customize the time zone. You can probably set the time_format config property at this point in the JSON: JSON Config Structure - Caddy Documentation using a time format recognized by Go’s time package: time package - time - pkg.go.dev

This topic was automatically closed after 30 days. New replies are no longer allowed.