You are here

public function JsonLogData::setSeverity in JSONlog 8

Same name and namespace in other branches
  1. 8.2 src/Logger/JsonLogData.php \Drupal\jsonlog\Logger\JsonLogData::setSeverity()
  2. 3.x src/Logger/JsonLogData.php \Drupal\jsonlog\Logger\JsonLogData::setSeverity()

Parameters

int $level:

File

src/Logger/JsonLogData.php, line 127

Class

JsonLogData

Namespace

Drupal\jsonlog\Logger

Code

public function setSeverity($level) {
  $this->severity = RfcLogLevel::getLevels()[$level];
}