src/log.js
function shouldRender (config, entry) {
  // if we're below the log level, return false
  if (config.level < entry.level) {
    return false
  }

  // if we match the ignore list at all, return false
  const ignoreMatch = _.find(_.values(config.filters.ignore), ignore => {
    return ignore.test(entry.namespace)
  })
  if (ignoreMatch) {
    return false
  }

  // if a should filter exists but we don't have a match, return false
  let shouldFiltered = false
  const shouldMatch = _.find(_.values(config.filters.should), should => {
    shouldFiltered = true
    return should.test(entry.namespace)
  })
  if ((shouldFiltered && !shouldMatch)) {
    return false
  }

  return true
}
function shouldRender (config, entry) {
  // if we're below the log level, return false
  if (config.level < entry.level) {
    return false
  }

  // if we match the ignore list at all, return false
  const ignoreMatch = _.find(_.values(config.filters.ignore), ignore => {
    return ignore.test(entry.namespace)
  })
  if (ignoreMatch) {
    return false
  }

  // if a should filter exists but we don't have a match, return false
  let shouldFiltered = false
  const shouldMatch = _.find(_.values(config.filters.should), should => {
    shouldFiltered = true
    return should.test(entry.namespace)
  })
  if ((shouldFiltered && !shouldMatch)) {
    return false
  }

  return true
}
function shouldRender ( config , entry ) { // if we're below the log level, return false if ( config . level < entry . level ) { return false } // if we match the ignore list at all, return false const ignoreMatch = _ . find ( _ . values ( config . filters . ignore ) , ignore => { return ignore . test ( entry . namespace ) } ) if ( ignoreMatch ) { return false } // if a should filter exists but we don't have a match, return false let shouldFiltered = false const shouldMatch = _ . find ( _ . values ( config . filters . should ) , should => { shouldFiltered = true return should . test ( entry . namespace ) } ) if ( ( shouldFiltered && ! shouldMatch ) ) { return false } return true }
check entry against configuration to see if it should be logged by adapter
check entry against configuration to see if it should be logged by adapter