loggerhythm
Advanced tools
Comparing version 3.0.4 to 3.0.5-feature-1
@@ -6,2 +6,3 @@ define(["require", "exports", "chalk", "util", "./interfaces"], function (require, exports, chalk_1, util, interfaces_1) { | ||
let stderrWrite = console.log; | ||
let devNullWrite; | ||
const stdPipesAreAvaliable = process !== undefined && | ||
@@ -30,2 +31,4 @@ process.stdout !== undefined && | ||
}; | ||
devNullWrite = (prefix, message, ...logObjects) => { | ||
}; | ||
} | ||
@@ -37,3 +40,3 @@ const namespaceColorBaseHue = 180; | ||
[interfaces_1.LogLevel.INFO]: { colorFunction: chalk_1.default.rgb(0, 143, 219), logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk_1.default.gray, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk_1.default.gray, logFunction: devNullWrite }, | ||
}; | ||
@@ -40,0 +43,0 @@ const subscribers = []; |
@@ -8,2 +8,3 @@ "use strict"; | ||
let stderrWrite = console.log; | ||
let devNullWrite; | ||
const stdPipesAreAvaliable = process !== undefined && | ||
@@ -32,2 +33,4 @@ process.stdout !== undefined && | ||
}; | ||
devNullWrite = (prefix, message, ...logObjects) => { | ||
}; | ||
} | ||
@@ -39,3 +42,3 @@ const namespaceColorBaseHue = 180; | ||
[interfaces_1.LogLevel.INFO]: { colorFunction: chalk_1.default.rgb(0, 143, 219), logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk_1.default.gray, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk_1.default.gray, logFunction: devNullWrite }, | ||
}; | ||
@@ -42,0 +45,0 @@ const subscribers = []; |
{ | ||
"name": "loggerhythm", | ||
"version": "3.0.4", | ||
"version": "3.0.5-feature-1", | ||
"description": "wrapper for winston to use it like debug with namespaces", | ||
@@ -5,0 +5,0 @@ "publicConfig": { |
@@ -9,6 +9,7 @@ import {Chalk, default as chalk} from 'chalk'; | ||
let stderrWrite: ILogFunction = console.log; | ||
let devNullWrite: ILogFunction; | ||
const stdPipesAreAvaliable: boolean = process !== undefined && | ||
process.stdout !== undefined && | ||
process.stderr !== undefined; | ||
process.stdout !== undefined && | ||
process.stderr !== undefined; | ||
if (stdPipesAreAvaliable) { | ||
@@ -47,2 +48,6 @@ const inspectOptions: any = {depth: null, colors: true}; | ||
}; | ||
devNullWrite = (prefix: string, message: string, ...logObjects: Array<any>): void => { | ||
}; | ||
} | ||
@@ -55,3 +60,3 @@ | ||
[LogLevel.INFO]: {colorFunction: chalk.rgb(0, 143, 219), logFunction: stdoutWrite}, | ||
[LogLevel.VERBOSE]: {colorFunction: chalk.gray, logFunction: stdoutWrite}, | ||
[LogLevel.VERBOSE]: {colorFunction: chalk.gray, logFunction: devNullWrite}, | ||
}; | ||
@@ -58,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
33410
438
2