| 1 |
<?php |
| 2 |
/*! |
| 3 |
* Hybridauth |
| 4 |
* https://hybridauth.github.io | https://github.com/hybridauth/hybridauth |
| 5 |
* (c) 2017 Hybridauth authors | https://hybridauth.github.io/license.html |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace Hybridauth\Logger; |
| 9 |
|
| 10 |
/** |
| 11 |
* Logger interface, forward-compatible with PSR-3. |
| 12 |
*/ |
| 13 |
interface LoggerInterface |
| 14 |
{ |
| 15 |
/** |
| 16 |
* Interesting events. |
| 17 |
* |
| 18 |
* Example: User logs in, SQL logs. |
| 19 |
* |
| 20 |
* @param string $message |
| 21 |
* @param array $context |
| 22 |
*/ |
| 23 |
public function info($message, array $context = array()); |
| 24 |
|
| 25 |
/** |
| 26 |
* Detailed debug information. |
| 27 |
* |
| 28 |
* @param string $message |
| 29 |
* @param array $context |
| 30 |
*/ |
| 31 |
public function debug($message, array $context = array()); |
| 32 |
|
| 33 |
/** |
| 34 |
* Runtime errors that do not require immediate action but should typically |
| 35 |
* be logged and monitored. |
| 36 |
* |
| 37 |
* @param string $message |
| 38 |
* @param array $context |
| 39 |
*/ |
| 40 |
public function error($message, array $context = array()); |
| 41 |
|
| 42 |
/** |
| 43 |
* Logs with an arbitrary level. |
| 44 |
* |
| 45 |
* @param mixed $level |
| 46 |
* @param string $message |
| 47 |
* @param array $context |
| 48 |
*/ |
| 49 |
public function log($level, $message, array $context = array()); |
| 50 |
} |
| 51 |
|