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