OtelLogger
OtelLogger
A logger that emits logs to OpenTelemetry and optionally to the console.
- Implements:
VendureLogger
debug
method
(message: string, context?: string) => voidwarn
method
(message: string, context?: string) => voidinfo
method
(message: string, context?: string) => voiderror
method
(message: string, context?: string) => voidverbose
method
(message: string, context?: string) => voidOtelLoggerOptions
Options for the OtelLogger.
logToConsole
property
LogLevelIf set to a LogLevel, the logger will also log to the console. This can be useful for local development or debugging.
Example
Was this chapter helpful?