|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Saltwater\App\Common; |
|
4
|
|
|
|
|
5
|
|
|
use Psr\Log\LoggerInterface; |
|
6
|
|
|
use Saltwater\Salt\Provider; |
|
7
|
|
|
|
|
8
|
|
|
abstract class Log extends Provider implements LoggerInterface |
|
9
|
|
|
{ |
|
10
|
|
|
public function emergency($message, array $context = array()) |
|
11
|
|
|
{ |
|
12
|
|
|
return $this->log('emergency', $message, $context); |
|
13
|
|
|
} |
|
14
|
|
|
|
|
15
|
|
|
public function alert($message, array $context = array()) |
|
16
|
|
|
{ |
|
17
|
|
|
return $this->log('alert', $message, $context); |
|
18
|
|
|
} |
|
19
|
|
|
|
|
20
|
|
|
public function critical($message, array $context = array()) |
|
21
|
|
|
{ |
|
22
|
|
|
return $this->log('critical', $message, $context); |
|
23
|
|
|
} |
|
24
|
|
|
|
|
25
|
|
|
public function error($message, array $context = array()) |
|
26
|
|
|
{ |
|
27
|
|
|
return $this->log('error', $message, $context); |
|
28
|
|
|
} |
|
29
|
|
|
|
|
30
|
|
|
public function warning($message, array $context = array()) |
|
31
|
|
|
{ |
|
32
|
|
|
return $this->log('warning', $message, $context); |
|
33
|
|
|
} |
|
34
|
|
|
|
|
35
|
|
|
public function notice($message, array $context = array()) |
|
36
|
|
|
{ |
|
37
|
|
|
return $this->log('notice', $message, $context); |
|
38
|
|
|
} |
|
39
|
|
|
|
|
40
|
|
|
public function info($message, array $context = array()) |
|
41
|
|
|
{ |
|
42
|
|
|
return $this->log('info', $message, $context); |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
public function debug($message, array $context = array()) |
|
46
|
|
|
{ |
|
47
|
|
|
return $this->log('debug', $message, $context); |
|
48
|
|
|
} |
|
49
|
|
|
} |
|
50
|
|
|
|