Lines Matching refs:level
34 protected $level; variable in Mustache_Logger_StreamLogger
42 … * @param int $level The minimum logging level at which this handler will be triggered
44 public function __construct($stream, $level = Mustache_Logger::ERROR) argument
46 $this->setLevel($level);
70 * @param int $level The minimum logging level which will be written
72 public function setLevel($level) argument
74 if (!array_key_exists($level, self::$levels)) {
75 …w new Mustache_Exception_InvalidArgumentException(sprintf('Unexpected logging level: %s', $level));
78 $this->level = $level;
88 return $this->level;
96 * @param mixed $level
100 public function log($level, $message, array $context = array()) argument
102 if (!array_key_exists($level, self::$levels)) {
103 …w new Mustache_Exception_InvalidArgumentException(sprintf('Unexpected logging level: %s', $level));
106 if (self::$levels[$level] >= self::$levels[$this->level]) {
107 $this->writeLog($level, $message, $context);
117 * @param int $level The logging level
121 protected function writeLog($level, $message, array $context = array()) argument
136 fwrite($this->stream, self::formatLine($level, $message, $context));
144 * @param int $level
148 protected static function getLevelName($level) argument
150 return strtoupper($level);
156 * @param int $level The logging level
162 protected static function formatLine($level, $message, array $context = array()) argument
166 self::getLevelName($level),