You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var CordovaLogger = require('cordova-common').CordovaLogger;
|
|
|
|
module.exports = {
|
|
adjustLoggerLevel: function (opts) {
|
|
if (opts instanceof Array) {
|
|
opts.silent = opts.indexOf('--silent') !== -1;
|
|
opts.verbose = opts.indexOf('--verbose') !== -1;
|
|
}
|
|
|
|
if (opts.silent) {
|
|
CordovaLogger.get().setLevel('error');
|
|
}
|
|
|
|
if (opts.verbose) {
|
|
CordovaLogger.get().setLevel('verbose');
|
|
}
|
|
}
|
|
};
|