https://github.com/stuzzo/monolog-extender
Extends Monolog formatters and processors
https://github.com/stuzzo/monolog-extender
formatter monolog processor
Last synced: 6 months ago
JSON representation
Extends Monolog formatters and processors
- Host: GitHub
- URL: https://github.com/stuzzo/monolog-extender
- Owner: stuzzo
- License: mit
- Created: 2017-03-24T16:33:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-26T10:45:11.000Z (over 7 years ago)
- Last Synced: 2025-02-05T07:11:24.860Z (8 months ago)
- Topics: formatter, monolog, processor
- Language: PHP
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Monolog Extender - Extends Monolog handlers and processors
[](https://packagist.org/packages/stuzzo/monolog-extender)
[](https://packagist.org/packages/stuzzo/monolog-extender)Monolog sends your logs to files, sockets, inboxes, databases and various
web services. [See the complete reference](https://github.com/Seldaek/monolog)This library extends Monolog's handlers and processors adding data to the record generated from processors.
Furthermore the library improves logs format.## Installation
Install the latest version with
```bash
$ composer require stuzzo/monolog-extender
```## Basic Usage
```php
setFormatter($formatter);
$log->pushHandler($handler);try {
throw new \RuntimeException('Something happen');
} catch (\Exception $exception) {
$log->critical('Error', ['exception' => $exception]);
}
```## Documentation
- [Usage Instructions](doc/README.md)
- [Monolog Handlers, Formatters and Processors](https://github.com/Seldaek/monolog/blob/master/doc/02-handlers-formatters-processors.md)## About
### Requirements
- This library works with PHP 5.5.9 or above.
### Author
Alfredo Aiello - -