Class: Logger
@kosko/log.Logger
Constructors
constructor
• new Logger(options
)
Parameters
Name | Type |
---|---|
options | Required <LoggerOptions > |
Defined in
Methods
enabled
▸ enabled(level
): boolean
Parameters
Name | Type |
---|---|
level | LogLevel |
Returns
boolean
Defined in
getLevel
▸ getLevel(): LogLevel
Returns
Defined in
getWriter
▸ getWriter(): LogWriter
Returns
Defined in
log
▸ log(level
, message
, options?
): void
Parameters
Name | Type |
---|---|
level | LogLevel |
message | string |
options | Partial <Omit <Log , "level" | "message" | "loggerLevel" >> |
Returns
void
Defined in
setLevel
▸ setLevel(level
): void
Parameters
Name | Type |
---|---|
level | LogLevel |
Returns
void
Defined in
setWriter
▸ setWriter(writer
): void
Parameters
Name | Type |
---|---|
writer | LogWriter |
Returns
void