SimpleLogger
Hierarchy
- DefaultLogger
- SimpleLogger
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
options: LoggerOptions
Returns SimpleLogger
Properties
inheriteddebugMode
readonlyinheritedwriter
Type declaration
Parameters
message: string
Returns void
Methods
inheritederror
Logs error message inside given namespace.
Parameters
namespace: LoggerNamespace
message: string
optionalcontext: LogContext
Returns void
inheritedisEnabled
Parameters
namespace: LoggerNamespace
optionalcontext: LogContext
Returns boolean
log
Logs a message inside given namespace.
Parameters
namespace: LoggerNamespace
message: string
optionalcontext: LogContext
Returns void
logQuery
Logs a message inside given namespace.
Parameters
context: { query: string } & LogContext
Returns void
inheritedsetDebugMode
Sets active namespaces. Pass
true
to enable all logging.Parameters
debugMode: boolean | LoggerNamespace[]
Returns void
inheritedwarn
Logs warning message inside given namespace.
Parameters
namespace: LoggerNamespace
message: string
optionalcontext: LogContext
Returns void
staticcreate
Parameters
options: LoggerOptions
Returns SimpleLogger
A basic logger that provides fully formatted output without color