lib/zlog.js
function setLogger(name, level, appenderNames) {
    try {
        var logger = getLogger(name);
        logger.setLevel(level);
        if (appenderNames) {
            logger.clearAppenders();
            appenderNames.forEach(function (name) {
                logger.addAppender(name);
            });
        }

        return logger;
    } catch (err) {
        err.message += formatText(' - Logger %b definition error', name);
        throw err;
    }
}
function setLogger(name, level, appenderNames) {
    try {
        var logger = getLogger(name);
        logger.setLevel(level);
        if (appenderNames) {
            logger.clearAppenders();
            appenderNames.forEach(function (name) {
                logger.addAppender(name);
            });
        }

        return logger;
    } catch (err) {
        err.message += formatText(' - Logger %b definition error', name);
        throw err;
    }
}
function setLogger ( name , level , appenderNames ) { try { var logger = getLogger ( name ) ; logger . setLevel ( level ) ; if ( appenderNames ) { logger . clearAppenders ( ) ; appenderNames . forEach ( function ( name ) { logger . addAppender ( name ) ; } ) ; } return logger ; } catch ( err ) { err . message += formatText ( ' - Logger %b definition error' , name ) ; throw err ; } }
if appenderNames are not provided, the rootLogger appender will be used.
if appenderNames are not provided the rootLogger appender will be used .