ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
LoggerTrait.php
Go to the documentation of this file.
1<?php
2
3namespace Psr\Log;
4
14{
23 public function emergency($message, array $context = array())
24 {
26 }
27
39 public function alert($message, array $context = array())
40 {
41 $this->log(LogLevel::ALERT, $message, $context);
42 }
43
54 public function critical($message, array $context = array())
55 {
57 }
58
68 public function error($message, array $context = array())
69 {
70 $this->log(LogLevel::ERROR, $message, $context);
71 }
72
84 public function warning($message, array $context = array())
85 {
87 }
88
97 public function notice($message, array $context = array())
98 {
100 }
101
112 public function info($message, array $context = array())
113 {
114 $this->log(LogLevel::INFO, $message, $context);
115 }
116
125 public function debug($message, array $context = array())
126 {
127 $this->log(LogLevel::DEBUG, $message, $context);
128 }
129
139 abstract public function log($level, $message, array $context = array());
140}
An exception for terminatinating execution or to throw for unit testing.
error($a_errmsg)
set error message @access public
info()
Definition: info.php:2
catch(Exception $e) $message
trait LoggerTrait
This is a simple Logger trait that classes unable to extend AbstractLogger (because they extend anoth...
Definition: LoggerTrait.php:14
$context
Definition: webdav.php:25