An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Monolog Extender - Extends Monolog handlers and processors

[![Total Downloads](https://img.shields.io/packagist/dt/stuzzo/monolog-extender.svg)](https://packagist.org/packages/stuzzo/monolog-extender)
[![Latest Stable Version](https://img.shields.io/packagist/v/stuzzo/monolog-extender.svg)](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 - -