Webiny\Component\Logger\Driver\Webiny\Record::getLevel PHP Method

getLevel() public method

Get log level of the current message
public getLevel ( ) : string
return string
    public function getLevel()
    {
        return $this->level;
    }

Usage Example

Esempio n. 1
0
 /**
  * Check if this handler can handle the given Record
  *
  * @param Record $record
  *
  * @return bool Boolean telling whether this handler can handle the given Record
  */
 public function canHandle(Record $record)
 {
     if ($this->levels->count() < 1) {
         return true;
     }
     return $this->levels->inArray($record->getLevel());
 }