Lines Matching refs:level
27 const LVL_MSG_ABOVE_ERROR = 5; // a level to disable the error to thrown in test
36 * Id level to name
47 * Id level to name
76 * @param int $level - the level see LVL constant
79 public static function msg(string $message, int $level = self::LVL_MSG_ERROR, string $canonical = "support", \Exception $e = null)
91 self::log2FrontEnd($message, $level, $canonical);
94 * Log level passed for a page (only for file used)
100 $level = $loglevelProp;
105 if ($level >= self::LVL_MSG_WARNING) {
106 self::log2file($message, $level, $canonical, $e);
112 self::throwErrorIfTest($level, $message, $e);
173 * @param $level
177 public static function log2FrontEnd($message, $level, $canonical = "support", bool $publicMessage = false)
184 $level = self::LVL_MSG_ERROR;
246 if ($level > self::LVL_MSG_DEBUG) {
247 $dokuWikiLevel = self::LVL_TO_MSG_LEVEL[$level];
269 * @param $level
274 private static function throwErrorIfTest($level, $message, \Exception $e = null)
279 && ($level >= $actualLevel)
282 throw new LogException($message, $level, $e);
354 * @param int $level
358 public static function setTestExceptionLevel(int $level)
360 ExecutionContext::getActualOrCreateFromEnv()->getConfig()->setLogExceptionLevel($level);