DefaultLogger
DefaultLogger
Default logger implementation that logs messages to the console. It formats the log messages with timestamps, log levels, and context information.
Signature
class DefaultLogger implements ILogger {
constructor(stdout: = process.stdout, stderr: = process.stderr)
debug(args: any[]) => void;
error(args: any[]) => void;
log(args: any[]) => void;
info(args: any[]) => void;
warn(args: any[]) => void;
}
- Implements:
ILogger
constructor
method
(stdout: = process.stdout, stderr: = process.stderr) => DefaultLogger
Creates a new instance of DefaultLogger.
debug
method
(args: any[]) => void
Logs a debug message.
error
method
(args: any[]) => void
Logs an error message.
log
method
(args: any[]) => void
Logs a default message.
info
method
(args: any[]) => void
Logs an info message.
warn
method
(args: any[]) => void
Logs a warning message.