default configurator for logging

Constructor

Defined logging/config.js

configure Function Public


Defined logging/config.js

Configure logging.

Arguments Source
function (appender){
   var rootLogger = Logger.getRootLogger();
   rootLogger.removeAllAppenders();
   if (base.isInstanceOf(appender, appenders.Appender)) {
       rootLogger.addAppender(appender);
   } else {
       rootLogger.addAppender(new appenders.ConsoleAppender());
   }
           
}
    

License

MIT https://github.com/C2FO/comb/raw/master/LICENSE

Meta