Skip to content

Commit 165e84a

Browse files
author
uid10804
committed
style(gts): gts fix
1 parent f698257 commit 165e84a

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

src/server/utils/logger.ts

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,26 @@ import * as pino from 'pino';
22

33
export 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+
}

0 commit comments

Comments
 (0)