File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -6,23 +6,21 @@ const baseLogger = pino({
66 options : {
77 colorize : true ,
88 ignore : 'pid,hostname' ,
9- hideObject : true ,
10- messageFormat : '{layer}: {msg}' ,
119 }
1210 } ,
1311} ) ;
1412
1513export const logger = baseLogger . child (
16- { layer : 'user_logs ' } ,
17- { level : process . env . HEAVY_DEBUG ? 'trace' : ( process . env . DEBUG_LEVEL || 'info' ) }
14+ { name : 'User logs ' } ,
15+ { level : process . env . HEAVY_DEBUG ? 'trace' : ( process . env . DEBUG_LEVEL || 'info' ) } ,
1816) ;
1917
2018export const afLogger = baseLogger . child (
21- { layer : 'af ' } ,
19+ { name : 'AF ' } ,
2220 { level : process . env . HEAVY_DEBUG ? 'trace' : ( process . env . AF_DEBUG_LEVEL || 'info' ) }
2321) ;
2422
2523export const dbLogger = baseLogger . child (
26- { layer : 'db ' } ,
24+ { name : 'DB ' } ,
2725 { level : process . env . HEAVY_DEBUG_QUERY ? 'trace' : ( process . env . DB_DEBUG_LEVEL || 'info' ) }
2826) ;
You can’t perform that action at this time.
0 commit comments