PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 2.0.7
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v2.0.7
4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 All 340 releases
profile-builder / assets / lib / Mustache / Logger.php

Logger.php in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 2.0.7, at assets/lib/Mustache/Logger.php

136 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of Mustache.php.
5 *
6 * (c) 2012 Justin Hileman
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 /**
13 * Describes a Mustache logger instance
14 *
15 * This is identical to the Psr\Log\LoggerInterface.
16 *
17 * The message MUST be a string or object implementing __toString().
18 *
19 * The message MAY contain placeholders in the form: {foo} where foo
20 * will be replaced by the context data in key "foo".
21 *
22 * The context array can contain arbitrary data, the only assumption that
23 * can be made by implementors is that if an Exception instance is given
24 * to produce a stack trace, it MUST be in a key named "exception".
25 *
26 * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
27 * for the full interface specification.
28 */
29 interface Mustache_Logger
30 {
31 /**
32 * Psr\Log compatible log levels
33 */
34 const EMERGENCY = 'emergency';
35 const ALERT = 'alert';
36 const CRITICAL = 'critical';
37 const ERROR = 'error';
38 const WARNING = 'warning';
39 const NOTICE = 'notice';
40 const INFO = 'info';
41 const DEBUG = 'debug';
42
43 /**
44 * System is unusable.
45 *
46 * @param string $message
47 * @param array $context
48 * @return null
49 */
50 public function emergency($message, array $context = array());
51
52 /**
53 * Action must be taken immediately.
54 *
55 * Example: Entire website down, database unavailable, etc. This should
56 * trigger the SMS alerts and wake you up.
57 *
58 * @param string $message
59 * @param array $context
60 * @return null
61 */
62 public function alert($message, array $context = array());
63
64 /**
65 * Critical conditions.
66 *
67 * Example: Application component unavailable, unexpected exception.
68 *
69 * @param string $message
70 * @param array $context
71 * @return null
72 */
73 public function critical($message, array $context = array());
74
75 /**
76 * Runtime errors that do not require immediate action but should typically
77 * be logged and monitored.
78 *
79 * @param string $message
80 * @param array $context
81 * @return null
82 */
83 public function error($message, array $context = array());
84
85 /**
86 * Exceptional occurrences that are not errors.
87 *
88 * Example: Use of deprecated APIs, poor use of an API, undesirable things
89 * that are not necessarily wrong.
90 *
91 * @param string $message
92 * @param array $context
93 * @return null
94 */
95 public function warning($message, array $context = array());
96
97 /**
98 * Normal but significant events.
99 *
100 * @param string $message
101 * @param array $context
102 * @return null
103 */
104 public function notice($message, array $context = array());
105
106 /**
107 * Interesting events.
108 *
109 * Example: User logs in, SQL logs.
110 *
111 * @param string $message
112 * @param array $context
113 * @return null
114 */
115 public function info($message, array $context = array());
116
117 /**
118 * Detailed debug information.
119 *
120 * @param string $message
121 * @param array $context
122 * @return null
123 */
124 public function debug($message, array $context = array());
125
126 /**
127 * Logs with an arbitrary level.
128 *
129 * @param mixed $level
130 * @param string $message
131 * @param array $context
132 * @return null
133 */
134 public function log($level, $message, array $context = array());
135 }
136