Log an outgoing HTTP request.
Correlated request identifier
HTTP method
Request URL
Request headers (sensitive values are redacted)
Request body (redacted/truncated)
Retry attempt number
Arbitrary metadata
Log an HTTP response.
Correlated request identifier
HTTP status code
HTTP status text
Response headers (sensitive values are redacted)
Response body (redacted/truncated)
Retry attempt number
Whether the response was served from cache
Arbitrary metadata
Log an HTTP error.
Correlated request identifier
The error object
HTTP status code, or null if no response
Retry attempt number
Arbitrary metadata
Generate a unique request ID using the configured generator.
Create a child logger with additional context fields.
The child logger inherits all configuration from the parent (transports, redaction, etc.)
but adds or overrides the context object with additional fields.
Note: Context is copied, not shared. Changes to the parent context after creating a child do not affect the child, and vice versa.
Additional context fields to merge into the logger's context
A new HTTPLogger with merged context
Flush all buffered log entries to their transports. Errors in individual transports are settled independently.
Structured HTTP request/response/error logger. Supports multiple transports, redaction, sampling, filtering, and child loggers.