docs/classes/management.SDK.Logger.html
Logger class that provides level-based logging functionality.
shouldLogisDebugdebugisInfoinfoisWarnwarnisErrorerror
new Logger(config: Required<LogConfig>): Logger
Creates a new logger instance.
Logger configuration
shouldLog(level: LogLevel): boolean
Checks if a log level should be output based on configuration.
The log level to check
True if the level should be logged
isDebug(): boolean
Checks if debug logging is enabled.
True if debug logs should be output
debug(message: string, ...args: unknown[]): void
Logs a debug message if debug logging is enabled.
The message to log
Additional arguments to log
isInfo(): boolean
Checks if info logging is enabled.
True if info logs should be output
info(message: string, ...args: unknown[]): void
Logs an info message if info logging is enabled.
The message to log
Additional arguments to log
isWarn(): boolean
Checks if warning logging is enabled.
True if warning logs should be output
warn(message: string, ...args: unknown[]): void
Logs a warning message if warning logging is enabled.
The message to log
Additional arguments to log
isError(): boolean
Checks if error logging is enabled.
True if error logs should be output
error(message: string, ...args: unknown[]): void
Logs an error message if error logging is enabled.
The message to log
Additional arguments to log
Member Visibility
ThemeOSLightDark
Constructors constructor Methods shouldLogisDebugdebugisInfoinfoisWarnwarnisErrorerror