From 795da622c67e11888e460e18b20e122baa14f973 Mon Sep 17 00:00:00 2001 From: Andrea Child Date: Mon, 21 Oct 2024 12:27:42 -0700 Subject: [PATCH] Configure pino to create the log file directory if it does not exist. --- src/logger.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/logger.js b/src/logger.js index a02b819..ed4e1d1 100644 --- a/src/logger.js +++ b/src/logger.js @@ -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'