You are here

public function LogMessage::getLevel in File Log 2.0.x

Same name and namespace in other branches
  1. 8 src/LogMessage.php \Drupal\filelog\LogMessage::getLevel()

Get the severity level.

Return value

string The severity level.

File

src/LogMessage.php, line 151

Class

LogMessage
Represents a single log event.

Namespace

Drupal\filelog

Code

public function getLevel() : string {
  return static::getLevels()[$this->level];
}