Skip to content

Commit be29e21

Browse files
committed
update readme
1 parent 3f31a9a commit be29e21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11

22
# PHP class to logs rotation
3+
34
PHP Class to rotate log files
45

56
This class permit log rotating with diferetne processor.
67

78
[![tests](https://github.com/cesargb/php-log-rotation/workflows/tests/badge.svg)](https://github.com/cesargb/php-log-rotation/actions)
89
[![Latest Version on Packagist](https://img.shields.io/packagist/v/cesargb/php-log-rotation.svg?style=flat-square&color=brightgreen)](https://packagist.org/packages/cesargb/php-log-rotation)
10+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/cesargb/php-log-rotation/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/cesargb/php-log-rotation/?branch=master)
911

1012
Note: If you have the version 1 installed, [read this](https://github.com/cesargb/php-log-rotation/tree/v1).
1113

@@ -28,7 +30,7 @@ $rotation
2830
->compress() // Optional, compress the file after rotated. Default false
2931
->files(30) // Optional, files are rotated 30 times before being removed. Default 366
3032
->minSize(1024) // Optional, are rotated when they grow bigger than 1024 bytes. Default 0
31-
->then(function ($filename) {}) // Optional, to get filename rotated
33+
->then(function ($filenameTarget, $filenameRotated) {}) // Optional, to get filename target and original filename
3234
->catch(function ($exception) {}) // Optional, to catch a exception in rotating
3335
->rotate('file.log');
3436
```

0 commit comments

Comments
 (0)