/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-logging-details-526baaf9fe4d-logging-details-s0149-c0000.md
Logging Details (1) - hono-docs
Logging Details (1) Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt logging details Summary The L...
Logging Details (1)
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#logging-details
Summary
The Logger Middleware logs the following details for each request: - Incoming Request: Logs the HTTP method, request path, and incoming request. - Outgoing Response: Logs the HTTP method, request path, response status code, and r...
Content
The Logger Middleware logs the following details for each request:
- Incoming Request: Logs the HTTP method, request path, and incoming request.
- Outgoing Response: Logs the HTTP method, request path, response status code, and request/response times.
- Status Code Coloring: Response status codes are color-coded for better visibility and quick identification of status categories. Different status code categories are represented by different colors.
- Elapsed Time: The time taken for the request/response cycle is logged in a human-readable format, either in milliseconds (ms) or seconds (s).
By using the Logger Middleware, you can easily monitor the flow of requests and responses in your Hono application and quickly identify any issues or performance bottlenecks.