MCPcopy Index your code
hub / github.com/SpringRoll/SpringRoll / isValidLevelName

Method isValidLevelName

src/debug/Debugger.js:160–173  ·  view source on GitHub ↗

* Checks to see if the string argument is a valid level name. * @param {string} level The level name. * @return {boolean} * @private

(level)

Source from the content-addressed store, hash-verified

158 * @private
159 */
160 static isValidLevelName(level) {
161 Debugger.initParams();
162 if (
163 'GENERAL' == level ||
164 'DEBUG' == level ||
165 'INFO' == level ||
166 'WARN' == level ||
167 'ERROR' == level
168 ) {
169 return true;
170 }
171
172 return false;
173 }
174
175 /**
176 * Will throw if statement is false.

Callers 2

minLevelMethod · 0.80
meetsLevelRequirementMethod · 0.80

Calls 1

initParamsMethod · 0.80

Tested by

no test coverage detected