ts-composite-logger
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "ts-composite-logger", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Logger written in typescript. Includes a console channel by default. Allows to add other log channels by extending ILogChannel interface.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -8,3 +8,3 @@ # Composite logger | ||
import {Logger, Console, LogLevel} from "ts-composite-logger"; | ||
import {Logger, Console, LogLevel} from "ts-composite-logger"; | ||
@@ -15,4 +15,4 @@ const console = new Console(); | ||
global.logger = (new Logger()) | ||
.addChannel(console) | ||
.setLevel(LogLevel.INFO); | ||
.addChannel(console) | ||
.setLevel(LogLevel.INFO); | ||
@@ -58,4 +58,4 @@ global.logger.info("VM connected"); | ||
export class MongoDB implements ILoggerChannel { | ||
private readonly connectUrl: string; | ||
export class MongoDB implements ILoggerChannel { | ||
private readonly connectUrl: string; | ||
private readonly dbName: string; | ||
@@ -65,7 +65,7 @@ private readonly collectionName: string; | ||
constructor(url: string, db: string, collection: string) { | ||
this.connectUrl = url; | ||
this.dbName = db; | ||
this.collectionName = collection; | ||
} | ||
constructor(url: string, db: string, collection: string) { | ||
this.connectUrl = url; | ||
this.dbName = db; | ||
this.collectionName = collection; | ||
} | ||
@@ -72,0 +72,0 @@ public async write(message: ILogMessage) { |
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
25355