LoggableException.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\Exceptions\Contracts; |
| 4 | |
| 5 | interface LoggableException { |
| 6 | /** |
| 7 | * Returns the human-readable message for the log |
| 8 | * |
| 9 | * @since 2.11.1 |
| 10 | * |
| 11 | * @return string |
| 12 | */ |
| 13 | public function getLogMessage(); |
| 14 | |
| 15 | /** |
| 16 | * Returns an associated array with additional context for the log |
| 17 | * |
| 18 | * @since 2.11.1 |
| 19 | * |
| 20 | * @return array |
| 21 | */ |
| 22 | public function getLogContext(); |
| 23 | } |
| 24 |