@voliware/logger
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "@voliware/logger", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "A tiny Javascript logger with levels and several options. Supports Node and all modern Browsers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,2 +11,7 @@ # logger | ||
format: Logger.timestamp.utc | ||
}, | ||
output: { | ||
console: true, | ||
// node only | ||
file: './log.txt' | ||
} | ||
@@ -13,0 +18,0 @@ }); |
@@ -196,3 +196,3 @@ /** | ||
/** | ||
* Append a UTC timestamp. | ||
* Append a locale time timestamp. | ||
* eg "10:43:06 AM" | ||
@@ -241,3 +241,4 @@ * @return {Logger} | ||
/** | ||
* Log a message. | ||
* Log a message. Will do nothing if the current | ||
* log level is greater than the specified one. | ||
* @param {string} message - message to log | ||
@@ -257,3 +258,4 @@ * @param {number} [level=this.options.level] - log level; current level by default | ||
/** | ||
* Log a message. | ||
* Log a message. | ||
* This is the actual log output function. | ||
* @param {string} message - message to log | ||
@@ -260,0 +262,0 @@ * @return {Logger} |
@@ -43,3 +43,3 @@ const Logger = require('./logger'); | ||
super(name, Object.extend(defaults, options)); | ||
if(!this.isNodeEnv){ | ||
if(!this.isNodeEnv()){ | ||
throw new Error("Not useable in non-node environment"); | ||
@@ -46,0 +46,0 @@ } |
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
27771
664
39