mirror of
https://github.com/appium/appium.git
synced 2026-10-27 20:04:24 +08:00
Added canonical home for loggers. More config work need to be done here.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user