@youpaichris/logger 6.0.4 → 6.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -13,7 +13,7 @@ let e = __filename.split("/");
|
|
13
13
|
const logFilePath = e.at(e.indexOf("node_modules") - 1) === 'logger' ? `log.log` : e.at(e.indexOf("node_modules") - 1) + `.log`;
|
14
14
|
const logFile = fs.createWriteStream(logFilePath, {flags: 'a'});
|
15
15
|
|
16
|
-
const successFilePath = e.at(e.indexOf("node_modules") - 1) === 'logger' ? `success.log` : e.at(e.indexOf("node_modules") - 1) + `-
|
16
|
+
const successFilePath = e.at(e.indexOf("node_modules") - 1) === 'logger' ? `success.log` : e.at(e.indexOf("node_modules") - 1) + `-success.log`;
|
17
17
|
const successFile = fs.createWriteStream(successFilePath, {flags: 'a'});
|
18
18
|
|
19
19
|
const errorFilePath = e.at(e.indexOf("node_modules") - 1) === 'logger' ? `error.log` : e.at(e.indexOf("node_modules") - 1) + `-error.log`;
|