Logging > timestamp > request received or finished?

1. The problem I’m having:

It is not clear to me from the documentation whether the timestamp logged represents the start of the request or when it finished. I am currently leaning towards the latter based on a hunch, and if so, I was wondering if it is possible to log the former somehow?

5. Links to relevant resources:


The log is written when the request → response pipeline is finished, because we need to show the response status etc.

Access logs include the duration, so you can subtract the duration from the timestamp to know when the request started.

There’s an example access log here How Logging Works — Caddy Documentation

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