We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad819bf commit da568e4Copy full SHA for da568e4
src/config/logger.config.ts
@@ -1,6 +1,8 @@
1
import dayjs from 'dayjs';
2
+import fs from 'fs';
3
4
import { configService, Log } from './env.config';
5
+const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
6
7
const formatDateLog = (timestamp: number) =>
8
dayjs(timestamp)
@@ -73,6 +75,7 @@ export class Logger {
73
75
console.log(
74
76
/*Command.UNDERSCORE +*/ Command.BRIGHT + Level[type],
77
'[Evolution API]',
78
+ `v${packageJson.version}`,
79
Command.BRIGHT + Color[type],
80
process.pid.toString(),
81
Command.RESET,
0 commit comments