Added canonical home for loggers. More config work need to be done here.

This commit is contained in:
Sebastian Tiedtke
2013-01-16 13:49:36 +01:00
committed by berni
parent cca5ffbf09
commit bfe91e08f0
+24
View File
@@ -0,0 +1,24 @@
"use strict";
var winston = require('winston')
, options = {
transports: [
new winston.transports.Console({
handleExceptions: true
, json: false
, exitOnError: false
})
]
};
winston.loggers.add('appium', options);
winston.loggers.add('instruments', options);
winston.addColors({
info: 'cyan'
, warn: 'yellow'
, error: 'error'
});
module.exports.get = function(name) {
return winston.loggers.get(name);
};