OtelLogger
A logger that emits logs to OpenTelemetry and optionally to the console.
- Implements:
VendureLogger
constructor
method
(options: OtelLoggerOptions) => OtelLoggerdebug
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) => voidOptions 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?