2017 © Pedro Peláez
 

library monolog-extender

Monolog wrapper that extends formatters and processors to add further informations

image

stuzzo/monolog-extender

Monolog wrapper that extends formatters and processors to add further informations

  • Wednesday, January 24, 2018
  • by stuzzo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,699 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

Monolog Extender - Extends Monolog handlers and processors

Total Downloads Latest Stable Version, (*1)

Monolog sends your logs to files, sockets, inboxes, databases and various web services. See the complete reference, (*2)

This library extends Monolog's handlers and processors adding data to the record generated from processors. Furthermore the library improves logs format., (*3)

Installation

Install the latest version with, (*4)

$ composer require stuzzo/monolog-extender

Basic Usage

<?php
use Monolog\Logger;
use Monolog\Handler\StreamHandler;

// create a log channel
$log = new Logger('request');

$handler = new StreamHandler('path/to/your.log', Logger::WARNING);

$formatter = new \Stuzzo\Monolog\Formatter\StreamFormatter(null, 'Y-m-d H:i:s');
$handler->setFormatter($formatter);
$log->pushHandler($handler);

try {
    throw new \RuntimeException('Something happen');
} catch (\Exception $exception) {
    $log->critical('Error', ['exception' => $exception]);
}

Documentation

About

Requirements

  • This library works with PHP 5.5.9 or above.

Author

Alfredo Aiello - stuzzo@gmail.com - http://twitter.com/stuzzo, (*5)

The Versions

24/01 2018

dev-master

9999999-dev

Monolog wrapper that extends formatters and processors to add further informations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo -stuzzo- Aiello

logging monolog formatter processor stuzzo

24/01 2018

2.1

2.1.0.0

Monolog wrapper that extends formatters and processors to add further informations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo -stuzzo- Aiello

logging monolog formatter processor

23/01 2018

2.0

2.0.0.0

Monolog wrapper that extends formatters and processors to add further informations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo -stuzzo- Aiello

logging monolog formatter processor

04/08 2017

1.2.0

1.2.0.0

Monolog wrapper that extends formatters and processors to add further informations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo -stuzzo- Aiello

logging monolog formatter processor

31/07 2017

1.1.1

1.1.1.0

Monolog wrapper that extends formatters and processors to add further informations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo -stuzzo- Aiello

logging monolog formatter processor

21/05 2017

1.1

1.1.0.0

Monolog wrapper that extends formatters and processors to add further informations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo -stuzzo- Aiello

logging monolog formatter processor

20/05 2017

1.0.1

1.0.1.0

Monolog wrapper that extends formatters and processors to add further informations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo -stuzzo- Aiello

logging monolog formatter processor

30/04 2017

1.0.0

1.0.0.0

Monolog wrapper that extends formatters and processors to add further informations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo -stuzzo- Aiello

logging monolog formatter processor