2014-12-16 03:15:29 +08:00
|
|
|
"use strict";
|
|
|
|
|
2014-05-14 10:05:01 +08:00
|
|
|
// The NullLogger is designed for cases where you want absolutely nothing to
|
|
|
|
// print to anywhere. Every proxied method from the Logger returns a noop.
|
2014-10-25 05:02:03 +08:00
|
|
|
var NullLogger = module.exports = {
|
|
|
|
toString: function() { return "NullLogger"; }
|
2014-05-14 10:05:01 +08:00
|
|
|
};
|
|
|
|
|
2014-12-16 03:15:29 +08:00
|
|
|
["debug", "info", "warn", "error", "fatal"].forEach(function(type) {
|
2014-10-25 05:02:03 +08:00
|
|
|
NullLogger[type] = function() {};
|
|
|
|
});
|