@youpaichris/logger 6.0.9 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,7 +5,6 @@
5
5
  * Chris / QQ:10512
6
6
  */
7
7
 
8
- const fs = require('fs');
9
8
  const {createWriteStreamWithDirectories} = require('./utils.js');
10
9
 
11
10
  let logFilePath, logFile, successFilePath, successFile, errorFilePath, errorFile, criticalFilePath, criticalFile;
@@ -291,6 +290,9 @@ class Logger {
291
290
  */
292
291
  process.on('exit', () => {
293
292
  logFile?.end();
293
+ successFile?.end();
294
+ errorFile?.end();
295
+ criticalFile?.end();
294
296
  });
295
297
  module.exports = Logger;
296
298
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youpaichris/logger",
3
- "version": "6.0.9",
3
+ "version": "6.1.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {