We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 730ae10 commit 0e76259Copy full SHA for 0e76259
README.md
@@ -39,13 +39,14 @@ Or you can define the options in the constructor
39
40
```php
41
use Cesargb\Log\Rotation;
42
+use Cesargb\Log\Exceptions\RotationFailed;
43
44
$rotation = new Rotation([
45
'files' => 1,
46
'compress' => true,
47
'min-size' => 10,
48
'then' => function ($filename) {},
- 'catch' => function ($error) {},
49
+ 'catch' => function (RotationFailed $exception) {},
50
]);
51
52
$rotation->rotate('file.log');
0 commit comments