Comparing version 4.2.1 to 4.3.0
@@ -47,3 +47,3 @@ // jscs:disable requireNamedUnassignedFunctions | ||
instance( prefix, stream ) { | ||
const logger = new Logger( prefix, stream ); | ||
const logger = new Logger( prefix, stream || this.__defaultStream ); | ||
logger.enableLogging = !this.isSilent; | ||
@@ -56,3 +56,3 @@ logger.__minLevel = this.minLevel; | ||
silence( beSilent ) { | ||
beSilent = typeof beSilent === "undefined" ? true : false; | ||
beSilent = typeof beSilent === "undefined"; | ||
@@ -75,4 +75,8 @@ this.isSilent = beSilent; | ||
} | ||
to( stream ) { | ||
this.__defaultStream = stream; | ||
} | ||
} | ||
module.exports = new LogFactory(); |
{ | ||
"name": "fm-log", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "Console logging facility for Node", | ||
@@ -5,0 +5,0 @@ "main": "lib/log.js", |
fm-log | ||
====== | ||
[![npm Package](https://npmjs.org/package/fm-log)](https://img.shields.io/npm/v/fm-log.svg) | ||
[![](https://travis-ci.org/fairmanager/fm-log.svg?branch=master)](https://travis-ci.org/fairmanager/fm-log) | ||
@@ -4,0 +5,0 @@ [![Coverage Status](https://coveralls.io/repos/fairmanager/fm-log/badge.svg?branch=master&service=github)](https://coveralls.io/github/fairmanager/fm-log?branch=master) |
Sorry, the diff of this file is not supported yet
1172491
34625
86