Constructors
constructor
-
new Logger(__namedParameters?: LoggerOptions,
logger?: Logger): Logger
-
Parameters
-
__namedParameters:
LoggerOptions = {}
-
logger: Logger = ...
Properties
Private
Readonly #logger
#logger:
Logger
Methods
child
-
child(params?: Bindings): Logger
debug
-
debug(message: string, extra?: Record<string, unknown>): void
-
Parameters
-
message: string
-
extra: Record<string, unknown> = {}
Returns void
error
-
error(message: string, extra?: Record<string, unknown>): void
-
Parameters
-
message: string
-
extra: Record<string, unknown> = {}
Returns void
fatal
-
fatal(message: string, extra?: Record<string, unknown>): void
-
Parameters
-
message: string
-
extra: Record<string, unknown> = {}
Returns void
info
-
info(message: string, extra?: Record<string, unknown>): void
-
Parameters
-
message: string
-
extra: Record<string, unknown> = {}
Returns void
trace
-
trace(message: string, extra?: Record<string, unknown>): void
-
Parameters
-
message: string
-
extra: Record<string, unknown> = {}
Returns void
warn
-
warn(message: string, extra?: Record<string, unknown>): void
-
Parameters
-
message: string
-
extra: Record<string, unknown> = {}
Returns void
Static
getLevel
-
getLevel(env_name?: string): "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent"
-
Parameters
-
env_name: string
= ENV_VARIABLE_NAME
Returns
"fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent"