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 1
1
import createLogger , { type LoggerOptions } from 'pino' ;
2
- import type pinodev from 'pino-dev' ;
3
2
import type { PrettyOptions } from 'pino-pretty' ;
4
3
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
+ } ;
11
7
12
8
const developmentOptionsOverride : BotLoggerOptions = {
13
9
transport : {
14
- target : 'pino-dev ' ,
10
+ target : 'pino-pretty ' ,
15
11
options : {
16
12
colorize : true ,
17
- // propertyMap: {
18
- // module: '[module]',
19
- // },
20
13
} ,
21
14
} ,
22
- // transport: {
23
- // target: 'pino-pretty',
24
- // options: {
25
- // customPrettifiers: {
26
- // // module: (name) => `[${name}]`,
27
- // },
28
- // },
29
- // },
30
15
level : process . env [ 'LOGLEVEL' ] ?? 'debug' ,
31
16
} ;
32
17
You can’t perform that action at this time.
0 commit comments