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

modular-log

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modular-log - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

examples/tsconfig.json

10

examples/basic-example.js
"use strict";
var log = require('../index');
var log = require('../lib/index');
// Create project level console log
log.createConsoleLogger({
level: 'trace',
});
// Cretate project level file log
log.createFileLogger({

@@ -10,3 +12,4 @@ filename: 'outfile.log',

});
var cnt = 0;
var cnt = 0; // Helper variable
// First logger object
var logger = log.createLogger('App');

@@ -19,5 +22,6 @@ logger.fatal('Testing', { cnt: cnt++ });

logger.trace('Testing', { cnt: cnt++ });
// Preparing delayed log
setTimeout(function () { return logger.fatal('Testing', { cnt: cnt++ }); }, 1000);
// Second logger object
var logger2 = log.createLogger('Another');
logger2.warn('Another guy here');
//# sourceMappingURL=basic-example.js.map

@@ -1,3 +0,4 @@

import * as log from '../index';
import * as log from '../lib/index';
// Create project level console log
log.createConsoleLogger({

@@ -7,2 +8,3 @@ level: 'trace',

// Cretate project level file log
log.createFileLogger({

@@ -13,3 +15,5 @@ filename: 'outfile.log',

let cnt = 0;
let cnt = 0; // Helper variable
// First logger object
let logger = log.createLogger('App');

@@ -23,5 +27,7 @@ logger.fatal('Testing', { cnt: cnt++ });

// Preparing delayed log
setTimeout(() => logger.fatal('Testing', { cnt: cnt++ }), 1000);
// Second logger object
let logger2 = log.createLogger('Another');
logger2.warn('Another guy here');
{
"name": "modular-log",
"version": "0.0.0",
"version": "0.0.1",
"description": "Modular components based on Winston looger",
"main": "index.js",
"main": "lib/index.js",
"typings": "lib/index",
"scripts": {

@@ -7,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1"

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