fixed logger to output cleaner to console
This commit is contained in:
parent
7eeccfe8f2
commit
9b13ac4680
4 changed files with 272 additions and 10 deletions
|
|
@ -39,11 +39,13 @@ function createTransports(serviceName: string, options?: {
|
|||
if (enableConsole) {
|
||||
targets.push({
|
||||
target: 'pino-pretty',
|
||||
level: loggingConfig.LOG_LEVEL, options: {
|
||||
level: loggingConfig.LOG_LEVEL,
|
||||
options: {
|
||||
minimumLevel: 'info',
|
||||
colorize: true,
|
||||
translateTime: 'yyyy-mm-dd HH:MM:ss.l',
|
||||
ignore: 'pid,hostname',
|
||||
messageFormat: '[{service}] {msg}'
|
||||
translateTime: 'HH:MM:ss.l',
|
||||
ignore: 'pid,hostname,service,environment,version',
|
||||
messageFormat: '[{service}] {msg}',
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue