20 lines
502 B
JavaScript
20 lines
502 B
JavaScript
/**
|
|
* Cylon.js - Null Logger
|
|
* cylonjs.com
|
|
*
|
|
* Copyright (c) 2013-2015 The Hybrid Group
|
|
* Licensed under the Apache 2.0 license.
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
// The NullLogger is designed for cases where you want absolutely nothing to
|
|
// print to anywhere. Every proxied method from the Logger returns a noop.
|
|
var NullLogger = module.exports = {
|
|
toString: function() { return "NullLogger"; }
|
|
};
|
|
|
|
["debug", "info", "warn", "error", "fatal"].forEach(function(type) {
|
|
NullLogger[type] = function() {};
|
|
});
|