timer-logs
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -22,3 +22,3 @@ declare type Config = { | ||
*/ | ||
loggerName?: 'timer-logs logger'; | ||
loggerName?: string; | ||
/** | ||
@@ -25,0 +25,0 @@ * This will be printed on all log output from the instance configured with it, to help identify where a log has |
@@ -27,2 +27,4 @@ "use strict"; | ||
this.config.label = this.splitFilePath.slice(-1)[0].split('.')[0]; | ||
if (this.config.loggerName === undefined) | ||
this.config.loggerName = 'timer-logs'; | ||
this.uniqueId = crypto.randomBytes(8).toString('hex'); | ||
@@ -29,0 +31,0 @@ this.start(this.config.label); |
@@ -22,3 +22,3 @@ import * as crypto from 'crypto' | ||
*/ | ||
loggerName?: 'timer-logs logger' | ||
loggerName?: string | ||
/** | ||
@@ -70,2 +70,3 @@ * This will be printed on all log output from the instance configured with it, to help identify where a log has | ||
if (this.config.label === undefined) this.config.label = this.splitFilePath.slice(-1)[0].split('.')[0] | ||
if(this.config.loggerName === undefined) this.config.loggerName = 'timer-logs' | ||
this.uniqueId = crypto.randomBytes(8).toString('hex') | ||
@@ -72,0 +73,0 @@ this.start(this.config.label) |
{ | ||
"name": "timer-logs", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "@types/node": "^15.00.0" |
Sorry, the diff of this file is not supported yet
54153
1047