Skip to content

Commit b762a3b

Browse files
committed
add doc
1 parent ee4af2a commit b762a3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ $rotation
3434
->truncate() // Optional, truncate the original log file in place after creating a copy, instead of moving the old log file.
3535
->then(function ($filenameTarget, $filenameRotated) {}) // Optional, to get filename target and original filename
3636
->catch(function (RotationFailed $exception) {}) // Optional, to catch a exception in rotating
37+
->finally(function ($message, $filenameTarget) {}) // Optional, this method will be called when the process has finished
3738
->rotate('file.log');
3839
```
3940

0 commit comments

Comments
 (0)