PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 19.0
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v19.0
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / vendor_prefixed / psr / log / Psr / Log / LoggerInterface.php

LoggerInterface.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 19.0, at vendor_prefixed/psr/log/Psr/Log/LoggerInterface.php

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