PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / trunk
Matomo Analytics – Powerful, Privacy-First Insights for WordPress vtrunk
5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / app / vendor / prefixed / psr / log / Psr / Log / AbstractLogger.php
matomo / app / vendor / prefixed / psr / log / Psr / Log Last commit date
Test 1 year ago AbstractLogger.php 2 years ago InvalidArgumentException.php 2 years ago LogLevel.php 2 years ago LoggerAwareInterface.php 2 years ago LoggerAwareTrait.php 2 years ago LoggerInterface.php 2 years ago LoggerTrait.php 2 years ago NullLogger.php 2 years ago
AbstractLogger.php
122 lines
1 <?php
2
3 namespace Matomo\Dependencies\Psr\Log;
4
5 /**
6 * This is a simple Logger implementation that other Loggers can inherit from.
7 *
8 * It simply delegates all log-level-specific methods to the `log` method to
9 * reduce boilerplate code that a simple Logger that does the same thing with
10 * messages regardless of the error level has to implement.
11 */
12 abstract class AbstractLogger implements LoggerInterface
13 {
14 /**
15 * System is unusable.
16 *
17 * @param string $message
18 * @param mixed[] $context
19 *
20 * @return void
21 */
22 public function emergency($message, array $context = array())
23 {
24 $this->log(LogLevel::EMERGENCY, $message, $context);
25 }
26 /**
27 * Action must be taken immediately.
28 *
29 * Example: Entire website down, database unavailable, etc. This should
30 * trigger the SMS alerts and wake you up.
31 *
32 * @param string $message
33 * @param mixed[] $context
34 *
35 * @return void
36 */
37 public function alert($message, array $context = array())
38 {
39 $this->log(LogLevel::ALERT, $message, $context);
40 }
41 /**
42 * Critical conditions.
43 *
44 * Example: Application component unavailable, unexpected exception.
45 *
46 * @param string $message
47 * @param mixed[] $context
48 *
49 * @return void
50 */
51 public function critical($message, array $context = array())
52 {
53 $this->log(LogLevel::CRITICAL, $message, $context);
54 }
55 /**
56 * Runtime errors that do not require immediate action but should typically
57 * be logged and monitored.
58 *
59 * @param string $message
60 * @param mixed[] $context
61 *
62 * @return void
63 */
64 public function error($message, array $context = array())
65 {
66 $this->log(LogLevel::ERROR, $message, $context);
67 }
68 /**
69 * Exceptional occurrences that are not errors.
70 *
71 * Example: Use of deprecated APIs, poor use of an API, undesirable things
72 * that are not necessarily wrong.
73 *
74 * @param string $message
75 * @param mixed[] $context
76 *
77 * @return void
78 */
79 public function warning($message, array $context = array())
80 {
81 $this->log(LogLevel::WARNING, $message, $context);
82 }
83 /**
84 * Normal but significant events.
85 *
86 * @param string $message
87 * @param mixed[] $context
88 *
89 * @return void
90 */
91 public function notice($message, array $context = array())
92 {
93 $this->log(LogLevel::NOTICE, $message, $context);
94 }
95 /**
96 * Interesting events.
97 *
98 * Example: User logs in, SQL logs.
99 *
100 * @param string $message
101 * @param mixed[] $context
102 *
103 * @return void
104 */
105 public function info($message, array $context = array())
106 {
107 $this->log(LogLevel::INFO, $message, $context);
108 }
109 /**
110 * Detailed debug information.
111 *
112 * @param string $message
113 * @param mixed[] $context
114 *
115 * @return void
116 */
117 public function debug($message, array $context = array())
118 {
119 $this->log(LogLevel::DEBUG, $message, $context);
120 }
121 }
122