File tree Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -2,25 +2,26 @@ import * as pino from 'pino';
22
33export class Logger {
44 private static instance : pino . Logger ;
5- private constructor ( ) { }
5+ private constructor ( ) { }
66
7- public static init ( prettyPrint = false ) {
8- Logger . instance = pino . default ( {
9- prettyPrint : prettyPrint
10- } ,
11- process . stderr
12- ) ;
13- }
7+ static init ( prettyPrint = false ) {
8+ Logger . instance = pino . default (
9+ {
10+ prettyPrint,
11+ } ,
12+ process . stderr
13+ ) ;
14+ }
1415
15- static getInstance ( ) :pino . Logger {
16- if ( ! Logger . instance ) {
17- return Logger . instance = pino . default ( {
18- prettyPrint : false
16+ static getInstance ( ) : pino . Logger {
17+ if ( ! Logger . instance ) {
18+ return ( Logger . instance = pino . default (
19+ {
20+ prettyPrint : false ,
1921 } ,
2022 process . stderr
21- ) ;
22- }
23- return Logger . instance ;
24-
23+ ) ) ;
24+ }
25+ return Logger . instance ;
2526 }
26- }
27+ }
You can’t perform that action at this time.
0 commit comments