Lines Matching refs:self
71 const DEFAULT_THROW_LEVEL = self::LVL_MSG_WARNING;
81 …lic static function msg(string $message, int $level = self::LVL_MSG_ERROR, string $canonical = sel…
85 self::messageNotEmpty($message);
87 self::log2file($e->getMessage(), LogUtility::LVL_MSG_ERROR, $canonical);
93 self::log2FrontEnd($message, $level, $canonical);
100 $loglevelProp = $INPUT->str(self::LOGLEVEL_URI_QUERY_PROPERTY, null);
107 if ($level >= self::LVL_MSG_WARNING) {
108 self::log2file($message, $level, $canonical, $e);
114 self::throwErrorIfTest($level, $message, $e);
128 …atic function log2file(?string $msg, int $logLevel = self::LVL_MSG_ERROR, ?string $canonical = sel…
132 self::messageNotEmpty($msg);
135 $logLevel = self::LVL_MSG_ERROR;
138 if (PluginUtility::isTest() || $logLevel >= self::LVL_MSG_WARNING) {
155 …$messageWritten = self::LVL_NAME[$logLevel] . " - $msg - (Page: $id, IP: {$INPUT->server->str('REM…
158 self::throwErrorIfTest($logLevel, $msg, $e);
170 …public static function log2FrontEnd($message, $level, string $canonical = self::SUPPORT_CANONICAL,…
174 self::messageNotEmpty($message);
177 $level = self::LVL_MSG_ERROR;
239 if ($level > self::LVL_MSG_DEBUG) {
240 $dokuWikiLevel = self::LVL_TO_MSG_LEVEL[$level];
269 if (PluginUtility::isTest() && self::$throwExceptionOnDevTest) {
298 self::$throwExceptionOnDevTest = false;
303 self::$throwExceptionOnDevTest = true;
334 …public static function error(string $message, string $canonical = self::SUPPORT_CANONICAL, \Except…
336 self::msg($message, LogUtility::LVL_MSG_ERROR, $canonical, $e);
339 …public static function warning(string $message, string $canonical = self::SUPPORT_CANONICAL, \Exce…
341 self::msg($message, LogUtility::LVL_MSG_WARNING, $canonical, $e);
344 …public static function info(string $message, string $canonical = self::SUPPORT_CANONICAL, \Excepti…
346 self::msg($message, LogUtility::LVL_MSG_INFO, $canonical, $e);
361 …ExecutionContext::getActualOrCreateFromEnv()->getConfig()->setLogExceptionLevel(self::LVL_MSG_WARN…
398 self::error("{$internalErrorMessage}: $message.$errorPreviousMessage", $canonical);
409 …public static function debug(string $message, string $canonical = self::SUPPORT_CANONICAL, $e = nu…
411 self::msg($message, LogUtility::LVL_MSG_DEBUG, $canonical, $e);
416 self::log2FrontEnd($html, LogUtility::LVL_MSG_INFO, $canonical, true);