← All changes
|
vendor_prefixed/psr/log/Psr/Log/LoggerInterface.php
+21
-19
18.8
→
trunk
View file →
| @@ -21,10 +21,10 @@ | ||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * System is unusable. |
| 24 | 24 | * |
| 25 | - * @param string $message | |
| 26 | - * @param array $context | |
| 25 | + * @param string $message | |
| 26 | + * @param mixed[] $context | |
| 27 | 27 | * |
| 28 | 28 | * @return void |
| 29 | 29 | */ |
| 30 | 30 | public function emergency($message, array $context = array()); |
| @@ -33,10 +33,10 @@ | ||
| 33 | 33 | * |
| 34 | 34 | * Example: Entire website down, database unavailable, etc. This should |
| 35 | 35 | * trigger the SMS alerts and wake you up. |
| 36 | 36 | * |
| 37 | - * @param string $message | |
| 38 | - * @param array $context | |
| 37 | + * @param string $message | |
| 38 | + * @param mixed[] $context | |
| 39 | 39 | * |
| 40 | 40 | * @return void |
| 41 | 41 | */ |
| 42 | 42 | public function alert($message, array $context = array()); |
| @@ -44,10 +44,10 @@ | ||
| 44 | 44 | * Critical conditions. |
| 45 | 45 | * |
| 46 | 46 | * Example: Application component unavailable, unexpected exception. |
| 47 | 47 | * |
| 48 | - * @param string $message | |
| 49 | - * @param array $context | |
| 48 | + * @param string $message | |
| 49 | + * @param mixed[] $context | |
| 50 | 50 | * |
| 51 | 51 | * @return void |
| 52 | 52 | */ |
| 53 | 53 | public function critical($message, array $context = array()); |
| @@ -54,10 +54,10 @@ | ||
| 54 | 54 | /** |
| 55 | 55 | * Runtime errors that do not require immediate action but should typically |
| 56 | 56 | * be logged and monitored. |
| 57 | 57 | * |
| 58 | - * @param string $message | |
| 59 | - * @param array $context | |
| 58 | + * @param string $message | |
| 59 | + * @param mixed[] $context | |
| 60 | 60 | * |
| 61 | 61 | * @return void |
| 62 | 62 | */ |
| 63 | 63 | public function error($message, array $context = array()); |
| @@ -66,10 +66,10 @@ | ||
| 66 | 66 | * |
| 67 | 67 | * Example: Use of deprecated APIs, poor use of an API, undesirable things |
| 68 | 68 | * that are not necessarily wrong. |
| 69 | 69 | * |
| 70 | - * @param string $message | |
| 71 | - * @param array $context | |
| 70 | + * @param string $message | |
| 71 | + * @param mixed[] $context | |
| 72 | 72 | * |
| 73 | 73 | * @return void |
| 74 | 74 | */ |
| 75 | 75 | public function warning($message, array $context = array()); |
| @@ -75,10 +75,10 @@ | ||
| 75 | 75 | public function warning($message, array $context = array()); |
| 76 | 76 | /** |
| 77 | 77 | * Normal but significant events. |
| 78 | 78 | * |
| 79 | - * @param string $message | |
| 80 | - * @param array $context | |
| 79 | + * @param string $message | |
| 80 | + * @param mixed[] $context | |
| 81 | 81 | * |
| 82 | 82 | * @return void |
| 83 | 83 | */ |
| 84 | 84 | public function notice($message, array $context = array()); |
| @@ -86,10 +86,10 @@ | ||
| 86 | 86 | * Interesting events. |
| 87 | 87 | * |
| 88 | 88 | * Example: User logs in, SQL logs. |
| 89 | 89 | * |
| 90 | - * @param string $message | |
| 91 | - * @param array $context | |
| 90 | + * @param string $message | |
| 91 | + * @param mixed[] $context | |
| 92 | 92 | * |
| 93 | 93 | * @return void |
| 94 | 94 | */ |
| 95 | 95 | public function info($message, array $context = array()); |
| @@ -95,10 +95,10 @@ | ||
| 95 | 95 | public function info($message, array $context = array()); |
| 96 | 96 | /** |
| 97 | 97 | * Detailed debug information. |
| 98 | 98 | * |
| 99 | - * @param string $message | |
| 100 | - * @param array $context | |
| 99 | + * @param string $message | |
| 100 | + * @param mixed[] $context | |
| 101 | 101 | * |
| 102 | 102 | * @return void |
| 103 | 103 | */ |
| 104 | 104 | public function debug($message, array $context = array()); |
| @@ -104,12 +104,14 @@ | ||
| 104 | 104 | public function debug($message, array $context = array()); |
| 105 | 105 | /** |
| 106 | 106 | * Logs with an arbitrary level. |
| 107 | 107 | * |
| 108 | - * @param mixed $level | |
| 109 | - * @param string $message | |
| 110 | - * @param array $context | |
| 108 | + * @param mixed $level | |
| 109 | + * @param string $message | |
| 110 | + * @param mixed[] $context | |
| 111 | 111 | * |
| 112 | 112 | * @return void |
| 113 | + * | |
| 114 | + * @throws \Psr\Log\InvalidArgumentException | |
| 113 | 115 | */ |
| 114 | 116 | public function log($level, $message, array $context = array()); |
| 115 | 117 | } |