fixed logger to output cleaner to console

This commit is contained in:
Bojan Kucera 2025-06-07 08:18:14 -04:00
parent 7eeccfe8f2
commit 9b13ac4680
4 changed files with 272 additions and 10 deletions

View file

@ -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}',
}
});
}