PluginProbe
ManageWP Worker / 4.9.35
ManageWP Worker v4.9.35
4.9.38 4.9.37 4.9.36 4.9.35 4.9.34 3.8.7 3.8.8 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.18 3.9.19 3.9.2 3.9.20 3.9.21 3.9.22 3.9.23 3.9.24 All 73 releases
worker / src / Monolog / Psr / LoggerInterface.php

LoggerInterface.php in ManageWP Worker 4.9.35, at src/Monolog/Psr/LoggerInterface.php

122 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Describes a logger instance
5 *
6 * The message MUST be a string or object implementing __toString().
7 *
8 * The message MAY contain placeholders in the form: {foo} where foo
9 * will be replaced by the context data in key "foo".
10 *
11 * The context array can contain arbitrary data, the only assumption that
12 * can be made by implementors is that if an Exception instance is given
13 * to produce a stack trace, it MUST be in a key named "exception".
14 *
15 * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
16 * for the full interface specification.
17 */
18 interface Monolog_Psr_LoggerInterface
19 {
20 /**
21 * System is unusable.
22 *
23 * @param string $message
24 * @param array $context
25 *
26 * @return null
27 */
28 public function emergency($message, array $context = array());
29
30 /**
31 * Action must be taken immediately.
32 *
33 * Example: Entire website down, database unavailable, etc. This should
34 * trigger the SMS alerts and wake you up.
35 *
36 * @param string $message
37 * @param array $context
38 *
39 * @return null
40 */
41 public function alert($message, array $context = array());
42
43 /**
44 * Critical conditions.
45 *
46 * Example: Application component unavailable, unexpected exception.
47 *
48 * @param string $message
49 * @param array $context
50 *
51 * @return null
52 */
53 public function critical($message, array $context = array());
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 array $context
61 *
62 * @return null
63 */
64 public function error($message, array $context = array());
65
66 /**
67 * Exceptional occurrences that are not errors.
68 *
69 * Example: Use of deprecated APIs, poor use of an API, undesirable things
70 * that are not necessarily wrong.
71 *
72 * @param string $message
73 * @param array $context
74 *
75 * @return null
76 */
77 public function warning($message, array $context = array());
78
79 /**
80 * Normal but significant events.
81 *
82 * @param string $message
83 * @param array $context
84 *
85 * @return null
86 */
87 public function notice($message, array $context = array());
88
89 /**
90 * Interesting events.
91 *
92 * Example: User logs in, SQL logs.
93 *
94 * @param string $message
95 * @param array $context
96 *
97 * @return null
98 */
99 public function info($message, array $context = array());
100
101 /**
102 * Detailed debug information.
103 *
104 * @param string $message
105 * @param array $context
106 *
107 * @return null
108 */
109 public function debug($message, array $context = array());
110
111 /**
112 * Logs with an arbitrary level.
113 *
114 * @param mixed $level
115 * @param string $message
116 * @param array $context
117 *
118 * @return null
119 */
120 public function log($level, $message, array $context = array());
121 }
122