Alias to comb.logging.Logger.getLogger. See comb.logging.Logger for more information.
Examplecomb.logger("my.logger");Source
Logger.getLogger.bind(Logger)
Property | Type | Default Value | Description |
rootLogger | comb.logging.Logger | rootLogger | The root for all loggers. |
Factory method for creating appenders. See comb.logging.appenders.Appender.createAppender for arguments.
Examplevar appender = comb.logger.appender("ConsoleAppender"); comb.logger("my.logger").addAppender(appender);Source
Appender.createAppender.bind(Appender)
Shortcut to configure loggers.
Example//same as new comb.logging.BasicConfigurator().configure(); comb.logger.configure(); //new comb.logging.PropertyConfigurator().configure("/location/to/logger/configuration.json"); comb.logger.configure("/location/to/logger/configuration.json");Source
function (){ var args = argsToArray(arguments), configurator; if (!args.length) { configurator = new configurators.BasicConfigurator(); } else { var first = args[0]; if (isHash(first) || isString(first)) { configurator = new configurators.PropertyConfigurator(); } else { configurator = new configurators.BasicConfigurator(); } } configurator.configure.apply(configurator, args); return this; }
MIT https://github.com/C2FO/comb/raw/master/LICENSE
git clone git://github.com/C2FO/comb.git