function compareLevel (direction, current, expected) {
  if (direction === SORTING_ORDER.DESC) {
    return current <= expected
  }

  return current >= expected
}
Determine if the given `current` level is enabled by comparing it
against the current threshold (`expected`).

@param {SORTING_ORDER} direction comparison direction "ASC" or "DESC"
@param {number} current current log level number representation
@param {number} expected threshold value to compare with
@returns {boolean}