imports/vx/client/code/ux.js
/**
     * Make log levels array.
     *
     * @param {boolean} all True to include ALL value at beginning of array.
     * @param {boolean} numericCodes True to indicate that code value should be numeric.
     * @return {array} Array of log levels.
     */
Make log levels array.
@param {boolean} all True to include ALL value at beginning of array.
@param {boolean} numericCodes True to indicate that code value should be numeric.
@return {array} Array of log levels.
Make log levels array . @param { boolean } all True to include ALL value at beginning of array . @param { boolean } numericCodes True to indicate that code value should be numeric . @return { array } Array of log levels .
makeLogLevelsArray(all, numericCodes) {
        let codeArray = []
        codeArray = _.map(Meteor.i18nMessages.codes.logLevel, (value, propertyName) => {
            let code = numericCodes ? propertyName : Meteor.i18nMessages.codes.logLevel[propertyName].code
            let propertyLocalized = Util.i18n("codes.logLevel." + propertyName)
            return { code : code, localized : propertyLocalized }
        })
        if (all) {
            codeArray.unshift({ code : "ALL", localized : Util.i18n("log.option_all")})
        }
        return codeArray
    }
makeLogLevelsArray ( all , numericCodes ) { let codeArray = [ ] codeArray = _ . map ( Meteor . i18nMessages . codes . logLevel , ( value , propertyName ) => { let code = numericCodes ? propertyName : Meteor . i18nMessages . codes . logLevel [ propertyName ] . code let propertyLocalized = Util . i18n ( "codes.logLevel." + propertyName ) return { code : code , localized : propertyLocalized } } ) if ( all ) { codeArray . unshift ( { code : "ALL" , localized : Util . i18n ( "log.option_all" ) } ) } return codeArray }
Make log levels array.
Make log levels array .