@breadstone/archipel-platform-logging
Classes
| Class | Description |
|---|---|
| ContextLogger | Structured logger that automatically enriches log entries with the current request context (requestId, userId) from RequestContextStore. |
| LoggerModule | Global logging module that configures the NestJS Logger with an application-wide log level and provides request-scoped context propagation via RequestIdMiddleware. |
| RequestContextStore | AsyncLocalStorage-based request context store. |
| RequestIdMiddleware | NestJS middleware that extracts or generates a unique request ID and stores it in the RequestContextStore via AsyncLocalStorage. |
Interfaces
| Interface | Description |
|---|---|
| IRequestContext | Shape of the per-request context stored in RequestContextStore. |
Variables
| Variable | Description |
|---|---|
| APP_LOG_LEVEL | Application log level (e.g. 'debug', 'info', 'warn', 'error'). |
| PLATFORM_LOGGING_CONFIG_ENTRIES | All configuration entries required by platform-logging. |
| REQUEST_ID_HEADER | Header name used to propagate the request correlation ID. |