| 1 | <?php |
||
| 25 | class Json extends AbstractFormatter |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * Json constructor. |
||
| 29 | * |
||
| 30 | * @param string $dateFormat |
||
| 31 | */ |
||
| 32 | 7 | public function __construct(string $dateFormat = "c") |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Applies a format to a message before sent it to the internal log |
||
| 39 | * |
||
| 40 | * @param Item $item |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | * @throws Exception |
||
| 44 | */ |
||
| 45 | 4 | public function format(Item $item): string |
|
| 60 | } |
||
| 61 |