appium-instruments
Advanced tools
Comparing version 1.2.0 to 1.2.1
'use strict'; | ||
var logger = require('winston'), | ||
var winston = require('winston'), | ||
_ = require('underscore'); | ||
var winston = require('winston'), | ||
_ = require('underscore'); | ||
var logger = new (winston.Logger)({ | ||
transports: [ | ||
new (winston.transports.Console)({ level : 'info' }) | ||
] | ||
}); | ||
var loggerWrap = { | ||
@@ -19,2 +28,10 @@ init: function (_logger) { | ||
module.exports = loggerWrap; | ||
loggerWrap.setConsoleLevel = function (level) { | ||
logger.transports.console.level = level; | ||
}; | ||
loggerWrap.instance = function () { | ||
return logger; | ||
}; | ||
module.exports = loggerWrap; |
@@ -7,3 +7,4 @@ 'use strict'; | ||
_ = require('underscore'), | ||
Instruments = require('./instruments'); | ||
Instruments = require('./instruments'), | ||
logger = require('./logger'); | ||
@@ -36,2 +37,5 @@ var getXcodeTraceTemplatePath = function () { | ||
exports.quickInstrument = function (opts) { | ||
if (opts.logger) { | ||
logger.init(opts.logger); | ||
} | ||
opts = _.clone(opts); | ||
@@ -38,0 +42,0 @@ _.defaults(opts, { |
{ | ||
"name": "appium-instruments", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "IOS Instruments + instruments-without-delay launcher used by Appium", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
615869
689