VendureLogger
VendureLogger
The VendureLogger interface defines the shape of a logger service which may be provided in the config.
Signature
interface VendureLogger {
error(message: string, context?: string, trace?: string): void;
warn(message: string, context?: string): void;
info(message: string, context?: string): void;
verbose(message: string, context?: string): void;
debug(message: string, context?: string): void;
setDefaultContext?(defaultContext: string): void;
}
error
method
(message: string, context?: string, trace?: string) => void
warn
method
(message: string, context?: string) => void
info
method
(message: string, context?: string) => void
verbose
method
(message: string, context?: string) => void
debug
method
(message: string, context?: string) => void
setDefaultContext
method
(defaultContext: string) => void