PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
media-cloud-sync / includes / sdk / google / psr / log / src / LoggerInterface.php

LoggerInterface.php in Media Cloud Sync 1.4.1, at includes/sdk/google/psr/log/src/LoggerInterface.php

91 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS\GCP\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 mixed[] $context
26 */
27 public function emergency(string|\Stringable $message, array $context = []) : void;
28 /**
29 * Action must be taken immediately.
30 *
31 * Example: Entire website down, database unavailable, etc. This should
32 * trigger the SMS alerts and wake you up.
33 *
34 * @param mixed[] $context
35 */
36 public function alert(string|\Stringable $message, array $context = []) : void;
37 /**
38 * Critical conditions.
39 *
40 * Example: Application component unavailable, unexpected exception.
41 *
42 * @param mixed[] $context
43 */
44 public function critical(string|\Stringable $message, array $context = []) : void;
45 /**
46 * Runtime errors that do not require immediate action but should typically
47 * be logged and monitored.
48 *
49 * @param mixed[] $context
50 */
51 public function error(string|\Stringable $message, array $context = []) : void;
52 /**
53 * Exceptional occurrences that are not errors.
54 *
55 * Example: Use of deprecated APIs, poor use of an API, undesirable things
56 * that are not necessarily wrong.
57 *
58 * @param mixed[] $context
59 */
60 public function warning(string|\Stringable $message, array $context = []) : void;
61 /**
62 * Normal but significant events.
63 *
64 * @param mixed[] $context
65 */
66 public function notice(string|\Stringable $message, array $context = []) : void;
67 /**
68 * Interesting events.
69 *
70 * Example: User logs in, SQL logs.
71 *
72 * @param mixed[] $context
73 */
74 public function info(string|\Stringable $message, array $context = []) : void;
75 /**
76 * Detailed debug information.
77 *
78 * @param mixed[] $context
79 */
80 public function debug(string|\Stringable $message, array $context = []) : void;
81 /**
82 * Logs with an arbitrary level.
83 *
84 * @param mixed $level
85 * @param mixed[] $context
86 *
87 * @throws \Psr\Log\InvalidArgumentException
88 */
89 public function log($level, string|\Stringable $message, array $context = []) : void;
90 }
91