Logger
Create Logger
createLogger()
Creates a custom logger.
Signature
createLogger(options: LoggerOptions)
Type
Details
createSystemLogger()
Creates system runtime logs printed in a specified method. Refer to Logger - System Log
Signature
createSystemLogger(options: SystemLoggerOptions)
Type
Details
requestLogger()
Middleware for API request and response logging.
Signature
requestLogger(appName: string, options?: RequestLoggerOptions): MiddewareType
Type
Details
app.createLogger()
Definition
When dirname is a relative path, the log files will be output to the directory named after the current application.
plugin.createLogger()
Usage is the same as app.createLogger().
Definition
Log Configuration
getLoggerLevel()
getLoggerLevel(): 'debug' | 'info' | 'warn' | 'error'
Gets the log level currently configured in the system.
getLoggerFilePath()
getLoggerFilePath(...paths: string[]): string
Concatenates directory paths based on the log directory currently configured in the system.
getLoggerTransports()
getLoggerTransports(): ('console' | 'file' | 'dailyRotateFile')[]
Gets the log output methods currently configured in the system.
getLoggerFormat()
getLoggerFormat(): 'logfmt' | 'json' | 'delimiter' | 'console'
Gets the log format currently configured in the system.
Log Output
Transports
Predefined output methods.
Transports.consoleTransports.fileTransports.dailyRotateFile

