Skip to content

Commit

Permalink
feat: add package version to logger format
Browse files Browse the repository at this point in the history
  • Loading branch information
ec2sw committed Jul 1, 2022
1 parent e4ce5e6 commit 64d193b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/logger.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (!fs.existsSync(logDir)) {
}
const logFormat = format.printf(
(info) =>
`${info.timestamp} [${info.level}]: ${info.message} ${
`${info.timestamp} [${packageJson.version}] [${info.level}]: ${info.message} ${
Object.keys(info.metadata || {}).length > 0
? JSON.stringify(info.metadata)
: ''
Expand Down

0 comments on commit 64d193b

Please sign in to comment.