ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
AbstractLogger.php
Go to the documentation of this file.
1<?php
2
3namespace Psr\Log;
4
12abstract class AbstractLogger implements LoggerInterface
13{
22 public function emergency($message, array $context = array())
23 {
24 $this->log(LogLevel::EMERGENCY, $message, $context);
25 }
26
38 public function alert($message, array $context = array())
39 {
40 $this->log(LogLevel::ALERT, $message, $context);
41 }
42
53 public function critical($message, array $context = array())
54 {
55 $this->log(LogLevel::CRITICAL, $message, $context);
56 }
57
67 public function error($message, array $context = array())
68 {
69 $this->log(LogLevel::ERROR, $message, $context);
70 }
71
83 public function warning($message, array $context = array())
84 {
85 $this->log(LogLevel::WARNING, $message, $context);
86 }
87
96 public function notice($message, array $context = array())
97 {
98 $this->log(LogLevel::NOTICE, $message, $context);
99 }
100
111 public function info($message, array $context = array())
112 {
113 $this->log(LogLevel::INFO, $message, $context);
114 }
115
124 public function debug($message, array $context = array())
125 {
126 $this->log(LogLevel::DEBUG, $message, $context);
127 }
128}
An exception for terminatinating execution or to throw for unit testing.
This is a simple Logger implementation that other Loggers can inherit from.
alert($message, array $context=array())
Action must be taken immediately.
critical($message, array $context=array())
Critical conditions.
warning($message, array $context=array())
Exceptional occurrences that are not errors.
debug($message, array $context=array())
Detailed debug information.
emergency($message, array $context=array())
System is unusable.
error($message, array $context=array())
Runtime errors that do not require immediate action but should typically be logged and monitored.
info($message, array $context=array())
Interesting events.
notice($message, array $context=array())
Normal but significant events.
Describes a logger instance.
log($level, $message, array $context=array())
Logs with an arbitrary level.