ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
LoggerTrait.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Psr\Log
;
4
13
trait
LoggerTrait
14
{
23
public
function
emergency(
$message
,
array
$context =
array
())
24
{
25
$this->log(
LogLevel::EMERGENCY
,
$message
, $context);
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
{
56
$this->log(
LogLevel::CRITICAL
,
$message
, $context);
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
{
86
$this->log(
LogLevel::WARNING
,
$message
, $context);
87
}
88
97
public
function
notice(
$message
,
array
$context =
array
())
98
{
99
$this->log(
LogLevel::NOTICE
,
$message
, $context);
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
}
Psr\Log
Definition:
AbstractLogger.php:3
Psr\Log\LoggerTrait
trait LoggerTrait
This is a simple Logger trait that classes unable to extend AbstractLogger (because they extend anoth...
Definition:
LoggerTrait.php:14
Psr\Log\LogLevel\NOTICE
const NOTICE
Definition:
LogLevel.php:15
Psr\Log\LogLevel\ERROR
const ERROR
Definition:
LogLevel.php:13
Psr\Log\LogLevel\DEBUG
const DEBUG
Definition:
LogLevel.php:17
Psr\Log\LogLevel\WARNING
const WARNING
Definition:
LogLevel.php:14
$message
catch(Exception $e) $message
Definition:
saml2-logout.php:34
Psr\Log\LogLevel\EMERGENCY
const EMERGENCY
Definition:
LogLevel.php:10
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
Psr\Log\LogLevel\CRITICAL
const CRITICAL
Definition:
LogLevel.php:12
Psr\Log\LogLevel\ALERT
const ALERT
Definition:
LogLevel.php:11
Psr\Log\LogLevel\INFO
const INFO
Definition:
LogLevel.php:16
libs
composer
vendor
psr
log
Psr
Log
LoggerTrait.php
Generated on Sat Jan 18 2025 19:01:08 for ILIAS by
1.8.13 (using
Doxyfile
)