mirror of
https://github.com/appium/appium.git
synced 2026-10-20 07:38:02 +08:00
25 lines
480 B
JavaScript
25 lines
480 B
JavaScript
"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);
|
|
};
|