lib/zlog.js
function findLoggerParent(logger) {
    if (rootLogger === logger) {
        return null;
    }
    var deep = true;

    var hierachy = getHierarchy(logger.name);
    var parent;
    for (var n = hierachy.length - 1; n >= 0 && !parent; n--) {
        parent = _.find(loggers, { name: hierachy[n] })
    }
    return parent || rootLogger;

}
function findLoggerParent(logger) {
    if (rootLogger === logger) {
        return null;
    }
    var deep = true;

    var hierachy = getHierarchy(logger.name);
    var parent;
    for (var n = hierachy.length - 1; n >= 0 && !parent; n--) {
        parent = _.find(loggers, { name: hierachy[n] })
    }
    return parent || rootLogger;

}
function findLoggerParent ( logger ) { if ( rootLogger === logger ) { return null ; } var deep = true ; var hierachy = getHierarchy ( logger . name ) ; var parent ; for ( var n = hierachy . length - 1 ; n >= 0 && ! parent ; n -- ) { parent = _ . find ( loggers , { name : hierachy [ n ] } ) } return parent || rootLogger ; }
Check the logger name and find out if there is any defined parent loggers
Check the logger name and find out if there is any defined parent loggers