You are here

protected function LagoonLogger::mapWatchdogtoMonologLevels in Lagoon Logs 7

Parameters

$watchdogErrorLevel:

Return value

mixed

File

lib/LagoonLogger.php, line 61

Class

LagoonLogger

Code

protected function mapWatchdogtoMonologLevels($watchdogErrorLevel) {
  if (!in_array($watchdogErrorLevel, array_keys(self::$watchdogMonologErrorMap))) {
    return self::$watchdogMonologErrorMap[WATCHDOG_ALERT];
  }
  return self::$watchdogMonologErrorMap[$watchdogErrorLevel];
}