-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbstractLogger.php
50 lines (42 loc) · 1.1 KB
/
AbstractLogger.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
namespace PSRLogger;
/**
* Just helper
*
* @author SN
*/
abstract class AbstractLogger implements LoggerInterface
{
public function alert($msg, array $context = [])
{
$this->log('alert', $msg, $context);
}
public function critical($msg, array $context = [])
{
$this->log('critical', $msg, $context);
}
public function debug($msg, array $context = [])
{
$this->log('debug', $msg, $context);
}
public function emergency($msg, array $context = [])
{
$this->log('emergency', $msg, $context);
}
public function error($msg, array $context = [])
{
$this->log('error', $msg, $context);
}
public function info($msg, array $context = [])
{
$this->log('info', $msg, $context);
}
public function notice($msg, array $context = [])
{
$this->log('notice', $msg, $context);
}
public function warning($msg, array $context = [])
{
$this->log('warning', $msg, $context);
}
}