rtoledof / analizer
There is no license information available for the latest version (dev-master) of this package.
The code analizer process the log to manage the logs from remote resource.
dev-master
2021-08-20 13:40 UTC
Requires
- php: 7.3.*
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-06-20 19:40:01 UTC
README
Analyzer
How to use it?
Install the package using composer.
composer require rtoledof/analizer
Once the package it's installed via composer initialize the logger. It requires the logger what is an interface that it should be implemented named ILogger and later on call the functions.
$logger = new LoggerTest(); $analyzer = new \Rtoledof\Analyzer\Analyzer($logger) $analyzer->analyze(new DateTime());
The analyzer has 3 method.
- read: Return the logs in the given date.
- store: Store a new log entry on the logger.
- analyze: Remove the logs older that the given date.