diff --git a/packages/main/utils/logger.ts b/packages/main/utils/logger.ts index 7910f636..dcf34519 100644 --- a/packages/main/utils/logger.ts +++ b/packages/main/utils/logger.ts @@ -9,7 +9,7 @@ import { getAppBaseDir } from './path' class Logger { public constructor() { if (!existsSync(this.log_file_dir_)) { - mkdirSync(this.log_file_dir_) + mkdirSync(this.log_file_dir_, { recursive: true }) } const date = format(new Date(), 'yyyyMMdd')