CsvHandler for Monolog sends your logs to CSV files. For more information on Monolog, see http://github.com/Seldaek/monolog
Install the latest version with
$ composer require femtopixel/monolog-csvhandler
<?php
use Monolog\Logger;
use FemtoPixel\Monolog\Handler\CsvHandler;
// create a log channel
$log = new Logger('name');
$log->pushHandler(new CsvHandler('path/to/your.csv', Logger::WARNING));
// add records to the log
$log->addWarning('Foo');
$log->addError('Bar');
- Monolog works with PHP 5.3 or above, and is also tested to work with HHVM.
Bugs and feature request are tracked on GitHub
Jay MOULIN jaymoulin@gmail.com See also the list of contributors which participated in this handler.
Monolog is licensed under the MIT License and so for this CsvHandler - see the LICENSE
file for details