MediaWiki  1.23.12
AbstractLogger.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Psr\Log;
4 
12 abstract class AbstractLogger implements LoggerInterface
13 {
21  public function emergency($message, array $context = array())
22  {
23  $this->log(LogLevel::EMERGENCY, $message, $context);
24  }
25 
36  public function alert($message, array $context = array())
37  {
38  $this->log(LogLevel::ALERT, $message, $context);
39  }
40 
50  public function critical($message, array $context = array())
51  {
52  $this->log(LogLevel::CRITICAL, $message, $context);
53  }
54 
63  public function error($message, array $context = array())
64  {
65  $this->log(LogLevel::ERROR, $message, $context);
66  }
67 
78  public function warning($message, array $context = array())
79  {
80  $this->log(LogLevel::WARNING, $message, $context);
81  }
82 
90  public function notice($message, array $context = array())
91  {
92  $this->log(LogLevel::NOTICE, $message, $context);
93  }
94 
104  public function info($message, array $context = array())
105  {
106  $this->log(LogLevel::INFO, $message, $context);
107  }
108 
116  public function debug($message, array $context = array())
117  {
118  $this->log(LogLevel::DEBUG, $message, $context);
119  }
120 }
Psr\Log\AbstractLogger\alert
alert($message, array $context=array())
Action must be taken immediately.
Definition: AbstractLogger.php:36
Psr\Log\LogLevel\EMERGENCY
const EMERGENCY
Definition: LogLevel.php:10
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
Psr\Log\AbstractLogger\notice
notice($message, array $context=array())
Normal but significant events.
Definition: AbstractLogger.php:90
Psr\Log
Definition: AbstractLogger.php:3
Psr\Log\LogLevel\CRITICAL
const CRITICAL
Definition: LogLevel.php:12
Psr\Log\AbstractLogger\info
info($message, array $context=array())
Interesting events.
Definition: AbstractLogger.php:104
Psr\Log\LogLevel\ALERT
const ALERT
Definition: LogLevel.php:11
Psr\Log\LogLevel\INFO
const INFO
Definition: LogLevel.php:16
Psr\Log\AbstractLogger\critical
critical($message, array $context=array())
Critical conditions.
Definition: AbstractLogger.php:50
Psr\Log\AbstractLogger
This is a simple Logger implementation that other Loggers can inherit from.
Definition: AbstractLogger.php:12
Psr\Log\AbstractLogger\error
error($message, array $context=array())
Runtime errors that do not require immediate action but should typically be logged and monitored.
Definition: AbstractLogger.php:63
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
Psr\Log\AbstractLogger\warning
warning($message, array $context=array())
Exceptional occurrences that are not errors.
Definition: AbstractLogger.php:78
Psr\Log\AbstractLogger\debug
debug($message, array $context=array())
Detailed debug information.
Definition: AbstractLogger.php:116
Psr\Log\LogLevel\NOTICE
const NOTICE
Definition: LogLevel.php:15
Psr\Log\AbstractLogger\emergency
emergency($message, array $context=array())
System is unusable.
Definition: AbstractLogger.php:21
Psr\Log\LogLevel\DEBUG
const DEBUG
Definition: LogLevel.php:17
Psr\Log\LoggerInterface
Describes a logger instance.
Definition: LoggerInterface.php:20
Psr\Log\LogLevel\ERROR
const ERROR
Definition: LogLevel.php:13
Psr\Log\LogLevel\WARNING
const WARNING
Definition: LogLevel.php:14
Psr\Log\LoggerInterface\log
log($level, $message, array $context=array())
Logs with an arbitrary level.