modular-log
Advanced tools
Comparing version 0.0.0 to 0.0.1
"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" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
10707
276
1