logging-facility.js
function exposeAPI(log){
    return {
        emerg: log(_loglevel.EMERGENCY),
        emergency: log(_loglevel.EMERGENCY),

        alert: log(_loglevel.ALERT),

        crit: log(_loglevel.CRITICAL),
        critical: log(_loglevel.CRITICAL),

        error: log(_loglevel.ERROR),
        err: log(_loglevel.ERROR),

        warning: log(_loglevel.WARNING),
        warn: log(_loglevel.WARNING),

        notice: log(_loglevel.NOTICE),

        log: log(_loglevel.INFO),
        info: log(_loglevel.INFO),

        debug: log(_loglevel.DEBUG)
    };
}
function exposeAPI(log){
    return {
        emerg: log(_loglevel.EMERGENCY),
        emergency: log(_loglevel.EMERGENCY),

        alert: log(_loglevel.ALERT),

        crit: log(_loglevel.CRITICAL),
        critical: log(_loglevel.CRITICAL),

        error: log(_loglevel.ERROR),
        err: log(_loglevel.ERROR),

        warning: log(_loglevel.WARNING),
        warn: log(_loglevel.WARNING),

        notice: log(_loglevel.NOTICE),

        log: log(_loglevel.INFO),
        info: log(_loglevel.INFO),

        debug: log(_loglevel.DEBUG)
    };
}
function exposeAPI ( log ) { return { emerg : log ( _loglevel . EMERGENCY ) , emergency : log ( _loglevel . EMERGENCY ) , alert : log ( _loglevel . ALERT ) , crit : log ( _loglevel . CRITICAL ) , critical : log ( _loglevel . CRITICAL ) , error : log ( _loglevel . ERROR ) , err : log ( _loglevel . ERROR ) , warning : log ( _loglevel . WARNING ) , warn : log ( _loglevel . WARNING ) , notice : log ( _loglevel . NOTICE ) , log : log ( _loglevel . INFO ) , info : log ( _loglevel . INFO ) , debug : log ( _loglevel . DEBUG ) } ; }
utility function to expose logging api
utility function to expose logging api