@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.
- package/index.js +3 -1
- 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
|
|