getLevel() public method

Get log level of the current message
public getLevel ( ) : string
return string
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());
 }