src/shared/console.js
function checkLevel (type) {
  const logLevel = (global.JUDEnvironment && global.JUDEnvironment.logLevel) || 'log'
  return levelMap[logLevel] && levelMap[logLevel][type]
}
function checkLevel (type) {
  const logLevel = (global.JUDEnvironment && global.JUDEnvironment.logLevel) || 'log'
  return levelMap[logLevel] && levelMap[logLevel][type]
}
function checkLevel ( type ) { const logLevel = ( global . JUDEnvironment && global . JUDEnvironment . logLevel ) || 'log' return levelMap [ logLevel ] && levelMap [ logLevel ] [ type ] }
Check if a certain type of message will be sent in current log level of env.
@param  {string} type
@return {boolean}
Check if a certain type of message will be sent in current log level of env .