logger4node
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "logger4node", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,2 +10,3 @@ import { Debugger } from 'debug'; | ||
export declare class Logger4Node { | ||
private static _ApplicationName; | ||
private static LOG_LEVEL_ENABLED; | ||
@@ -15,2 +16,3 @@ private readonly _debugLogger; | ||
private static isLogEnabled; | ||
private static set ApplicationName(value); | ||
get debugLogger(): Debugger; | ||
@@ -17,0 +19,0 @@ verbose(formatter: unknown, ...args: Array<unknown>): void; |
@@ -13,3 +13,3 @@ "use strict"; | ||
static create(name) { | ||
return new Logger4Node(name); | ||
return new Logger4Node(`${Logger4Node._ApplicationName}:${name}`); | ||
} | ||
@@ -19,2 +19,5 @@ static isLogEnabled(logSeverity) { | ||
} | ||
static set ApplicationName(applicationName) { | ||
Logger4Node._ApplicationName = applicationName; | ||
} | ||
get debugLogger() { | ||
@@ -46,2 +49,3 @@ return this._debugLogger; | ||
exports.Logger4Node = Logger4Node; | ||
Logger4Node._ApplicationName = ''; | ||
Logger4Node.LOG_LEVEL_ENABLED = [ | ||
@@ -48,0 +52,0 @@ 0 /* VERBOSE */, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5700
85