lib/logging/appenders/appender.js
function (type, options) {
            var caseType = type.toLowerCase();
            if (caseType in APPENDER_TYPES) {
                return new APPENDER_TYPES[caseType](options);
            } else {
                throw new Error(type + " appender is not registered!");
            }

        }
function (type, options) {
            var caseType = type.toLowerCase();
            if (caseType in APPENDER_TYPES) {
                return new APPENDER_TYPES[caseType](options);
            } else {
                throw new Error(type + " appender is not registered!");
            }

        }
function ( type , options ) { var caseType = type . toLowerCase ( ) ; if ( caseType in APPENDER_TYPES ) { return new APPENDER_TYPES [ caseType ] ( options ) ; } else { throw new Error ( type + " appender is not registered!" ) ; } }
Acts as a factory for appenders.

@example

var logging = comb.logging,
Logger = logging.Logger,
Appender = logging.appenders.Appender;

var logger = comb.logging.Logger.getLogger("my.logger");
logger.addAppender(Appender.createAppender("consoleAppender"));

@param {String} type the type of appender to create.
@param {Object} [options={}] additional options to pass to the appender.
@return {comb.logging.appenders.Appender} an appender to add to a logger.
Acts as a factory for appenders .