/Knowledge/sources/honojs__hono/llms-full/logger-middleware-logging-details--3f3140e59f42.md
Logger Middleware: Logging Details - hono-docs
Logger Middleware: Logging Details Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt logging details Sum...
Logger Middleware: Logging Details
Source evidence: /Sources/honojs__hono/provenance.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.
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#logging-details",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Logger Middleware > Logging Details (1)",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 149,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Logger Middleware: Logging Details",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}