Lines Matching defs:level
82 /** @var string default log level */
166 'Minimum level of messages to display. Default is ' . $this->colors->wrap($this->logdefault, Colors::C_CYAN) . '. ' .
169 'level'
192 $level = $this->options->getOpt('loglevel', $this->logdefault);
193 $this->setLogLevel($level);
225 * Set the current log level
227 * @param string $level
229 public function setLogLevel($level)
231 if (!isset($this->loglevel[$level])) $this->fatal('Unknown log level');
234 if ($l == $level) $enable = true;
240 * Check if a message with the given level should be logged
242 * @param string $level
245 public function isLogLevelEnabled($level)
247 if (!isset($this->loglevel[$level])) $this->fatal('Unknown log level');
248 return $this->loglevel[$level]['enabled'];
277 * Normal, positive outcome (This is not a PSR-3 level)
288 * @param string $level
292 protected function logMessage($level, $message, array $context = array())
294 // unknown level is always an error
295 if (!isset($this->loglevel[$level])) $level = 'error';
297 $info = $this->loglevel[$level];
298 if (!$this->isLogLevelEnabled($level)) return; // no logging for this level