Lines Matching refs:valid

157     throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(s))
827 Pe.throwExceptionIf(e, Pe.not(Pe.validIdentifier(n)), `level name "${n}" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`), Pe.throwExceptionIf(e, Pe.not(Pe.anObject(t[n])), `level "${n}" must be an object`), Pe.throwExceptionIf(e, Pe.not(t[n].value), `level "${n}" must have a 'value' property`), Pe.throwExceptionIf(e, Pe.not(Pe.anInteger(t[n].value)), `level "${n}".value must have an integer value`), Pe.throwExceptionIf(e, Pe.not(t[n].colour), `level "${n}" must have a 'colour' property`), Pe.throwExceptionIf(e, Pe.not(ke.indexOf(t[n].colour) > -1), `level "${n}".colour must be one of ${ke.join(", ")}`)
2795 return Qo.throwExceptionIf(t, Qo.not(r), `appender "${e}" is not valid (type "${n.type}" could not be found)`), r.appender && (process.emitWarning(`Appender ${n.type} exports an appender function.`, "DeprecationWarning", "log4js-node-DEP0001"), Xo("[log4js-node-DEP0001]", `DEPRECATION: Appender ${n.type} exports an appender function.`)), r.shutdown && (process.emitWarning(`Appender ${n.type} exports a shutdown function.`, "DeprecationWarning", "log4js-node-DEP0002"), Xo("[log4js-node-DEP0002]", `DEPRECATION: Appender ${n.type} exports a shutdown function.`)), Xo(`${e}: clustering.isMaster ? ${ei.isMaster()}`), Xo(`${e}: appenderModule is ${i.inspect(r)}`), ei.onlyOnMaster((() => (Xo(`calling appenderModule.configure for ${e} / ${n.type}`), r.configure(ri.modifyConfig(n), ni, (e => ci(e, t)), ti))), (() => {
2812 Qo.throwExceptionIf(e, Qo.not(e.appenders[t].type), `appender "${t}" is not valid (must be an object with property "type")`)
2846 n.throwExceptionIf(e, [n.not(o.appenders), n.not(o.level)], `category "${t}" is not valid (must be an object with properties "appenders" and "level")`), n.throwExceptionIf(e, n.not(Array.isArray(o.appenders)), `category "${t}" is not valid (appenders must be an array of appender names)`), n.throwExceptionIf(e, n.not(o.appenders.length), `category "${t}" is not valid (appenders must contain at least one appender name)`), Object.prototype.hasOwnProperty.call(o, "enableCallStack") && n.throwExceptionIf(e, "boolean" != typeof o.enableCallStack, `category "${t}" is not valid (enableCallStack must be boolean type)`), o.appenders.forEach((r => {
2847 n.throwExceptionIf(e, n.not(u.get(r)), `category "${t}" is not valid (appender "${r}" is not defined)`)
2848 })), n.throwExceptionIf(e, n.not(r.getLevel(o.level)), `category "${t}" is not valid (level "${o.level}" not recognised; valid levels are ${r.levels.join(", ")})`)
2952 n ? this.isLevelEnabled(n) && this._log(n, t) : yi.validIdentifier(e) && t.length > 0 ? (this.log(hi.WARN, "log4js:logger.log: valid log-level not found as first parameter given:", e), this.log(hi.INFO, `[${e}]`, ...t)) : this.log(hi.INFO, e, ...t)
3300 throw new Error(`${e} is not in valid JSON/JSON5 format.`)
3614 console.warn(`JSON5: '${Ts(e)}' in strings is not valid ECMAScript; consider escaping.`)