bbhlondon / log-utilities
0.0.1
2016-02-12 17:43 UTC
This package is not auto-updated.
Last update: 2024-10-18 11:07:56 UTC
README
Install
Using composer:
php composer.phar require bbhlondon/log-utilities
Usage
require __DIR__.'/vendor/autoload.php'; use BBHLondon\LogUtilities\LogUtilities; $logger = new BBHLondon\LogUtilities\LogUtilities; $logger->scanDir('/var/log/apache/site1-access.log'); $logger->scanDir('/var/log/apache/site2-access.log'); $logger->find('/password-reset-request'); $logger->scan(); $logger->sortByDate(); $logger->dateFrom('2016-01-01 00:00:00'); $logger->dateTo('2016-02-01 23:59:59'); $logger->output('dir/export.log');