Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-composite-logger

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-composite-logger - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

2

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc