Skip to content

Commit

Permalink
Merge pull request #35 from Bit-Quill/achild/createLogFileIfNotExists
Browse files Browse the repository at this point in the history
Configure pino to create the log file directory if it does not exist.
  • Loading branch information
Cole-Greer authored Oct 21, 2024
2 parents 8800cba + 795da62 commit cccc370
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function loggerInit(directory, quiet = false, logLevel = 'info') {
target: 'pino-pretty',
options: {
destination: logFileDestination,
mkdir: true,
colorize: false,
translateTime: 'yyyy-mm-dd HH:MM:ss',
ignore: 'pid,hostname'
Expand Down

0 comments on commit cccc370

Please sign in to comment.