File tree Expand file tree Collapse file tree 1 file changed +4
-19
lines changed
Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change 11import createLogger , { type LoggerOptions } from 'pino' ;
2- import type pinodev from 'pino-dev' ;
32import type { PrettyOptions } from 'pino-pretty' ;
43
5- type PrettyDevOptions = Parameters < typeof pinodev > [ 0 ] ;
6- type BotLoggerOptions = LoggerOptions &
7- (
8- | { transport ?: { target : 'pino-dev' ; options : PrettyDevOptions } }
9- | { transport ?: { target : 'pino-pretty' ; options : PrettyOptions } }
10- ) ;
4+ type BotLoggerOptions = LoggerOptions & {
5+ transport ?: { target : 'pino-pretty' ; options : PrettyOptions } ;
6+ } ;
117
128const developmentOptionsOverride : BotLoggerOptions = {
139 transport : {
14- target : 'pino-dev ' ,
10+ target : 'pino-pretty ' ,
1511 options : {
1612 colorize : true ,
17- // propertyMap: {
18- // module: '[module]',
19- // },
2013 } ,
2114 } ,
22- // transport: {
23- // target: 'pino-pretty',
24- // options: {
25- // customPrettifiers: {
26- // // module: (name) => `[${name}]`,
27- // },
28- // },
29- // },
3015 level : process . env [ 'LOGLEVEL' ] ?? 'debug' ,
3116} ;
3217
You can’t perform that action at this time.
0 commit comments