DefaultLogger
Hierarchy
- DefaultLogger
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
options: LoggerOptions
Returns DefaultLogger
Properties
debugMode
readonlywriter
Type declaration
Parameters
message: string
Returns void
Methods
error
Parameters
namespace: LoggerNamespace
message: string
optionalcontext: LogContext
Returns void
isEnabled
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
setDebugMode
Sets active namespaces. Pass
true
to enable all logging.Parameters
debugMode: boolean | LoggerNamespace[]
Returns void
warn
Logs warning message inside given namespace.
Parameters
namespace: LoggerNamespace
message: string
optionalcontext: LogContext
Returns void
staticcreate
Parameters
options: LoggerOptions
Returns DefaultLogger
Logs error message inside given namespace.