Compare commits
No commits in common. "07415b929810719f0215f899a1cddeeb23f4795d" and "332db8e340568f2519d063650cc7a4a385ad31cb" have entirely different histories.
07415b9298
...
332db8e340
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@navy.gif/logger",
|
"name": "@navy.gif/logger",
|
||||||
"version": "1.2.2",
|
"version": "1.2.1",
|
||||||
"description": "Logging thing",
|
"description": "Logging thing",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "Navy.gif",
|
"author": "Navy.gif",
|
||||||
|
@ -118,7 +118,7 @@ class MasterLogger {
|
|||||||
if (!type)
|
if (!type)
|
||||||
throw new Error('Missing file type');
|
throw new Error('Missing file type');
|
||||||
|
|
||||||
const fileName = `${moment(date).format('YYYY-MM-DD')}-${type}.log`;
|
const fileName = `${moment(date).format('YYYY-MM-DD')}-${type}-${date}.log`;
|
||||||
const filePath = path.join(this.directory, fileName);
|
const filePath = path.join(this.directory, fileName);
|
||||||
|
|
||||||
if (!fs.existsSync(filePath))
|
if (!fs.existsSync(filePath))
|
||||||
|
Loading…
Reference in New Issue
Block a user