Skip to content

femtopixel/monolog-csvhandler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f819203 · May 2, 2024

History

35 Commits
Dec 3, 2022
Dec 26, 2022
Jan 24, 2020
Dec 5, 2017
Nov 14, 2016
Jan 24, 2020
Apr 18, 2017
Nov 14, 2016
May 2, 2024
Dec 26, 2022
Apr 2, 2018
Nov 16, 2016

Repository files navigation

Caution

As-of 2021, this product does not have a free support team anymore. If you want this product to be maintained, please support my work.

Note

(This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added.)

logo

CsvHandler for Monolog - Logging for PHP Build Status

Latest Stable Version Minimum PHP Version Scrutinizer Code Quality Code Coverage License PayPal donation Buy me a coffee Buy me a coffee

CsvHandler for Monolog sends your logs to CSV files. For more information on Monolog, see http://github.com/Seldaek/monolog

Installation

Install the latest version with

$ composer require femtopixel/monolog-csvhandler

Basic Usage

<?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');

About

Requirements

  • Monolog works with PHP 5.3 or above, and is also tested to work with HHVM.

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub

Author

Jay MOULIN See also the list of contributors which participated in this handler.

License

Monolog is licensed under the MIT License and so for this CsvHandler - see the LICENSE file for details