2017 © Pedro Peláez
 

library laravel-monolog-config

Simple Configuration Package for Monolog in Laravel.

image

astrotomic/laravel-monolog-config

Simple Configuration Package for Monolog in Laravel.

  • Wednesday, January 17, 2018
  • by Gummibeer
  • Repository
  • 3 Watchers
  • 7 Stars
  • 7,711 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 2 Open issues
  • 7 Versions
  • 9 % Grown

The README.md

Monolog Configurator - Laravel 5

GitHub Author GitHub release GitHub license GitHub issues, (*1)

StyleCI Code Climate Code Climate, (*2)

This package provides a simple way to configure monolog in Laravel/Lumen., (*3)


Installation

Step 1

Add it on your composer.json, (*4)

"astrotomic/laravel-monolog-config": "^1.0"

and run, (*5)

composer update

or run, (*6)

composer require astrotomic/laravel-monolog-config

Step 2

Add the following string to config/app.php, (*7)

Providers array:, (*8)

\Astrotomic\MonologConfig\MonologConfigServiceProvider::class,

Step 3

Publish the configuration for monolog with the following command:, (*9)

php artisan vendor:publish --provider="Astrotomic\MonologConfig\MonologConfigServiceProvider"

And adjust all the configurations to your needs., (*10)

Step 4

Use it as your monolog configuration tool. Add this to your bootstrap/app.php after the Interface bindings and before the return:, (*11)

/*
|--------------------------------------------------------------------------
| Configure Monolog
|--------------------------------------------------------------------------
*/

$app->configureMonologUsing(function (Monolog\Logger $monolog) {
    $configurator = new \Astrotomic\MonologConfig\MonologConfigurator($monolog);
    $configurator->run();
});

You can configure monolog after this your own in this method the normal Laravel way., (*12)

Handlers

At the moment this class supports the following handlers, if you need any other one just create a PR or write an issue., (*13)

v1.0.0 * \Monolog\Handler\ErrorLogHandler * \Monolog\Handler\GelfHandler * \Monolog\Handler\LogglyHandler * \Monolog\Handler\MandrillHandler * \Monolog\Handler\MongoDBHandler * \Monolog\Handler\NativeMailerHandler * \Monolog\Handler\RotatingFileHandler * \Monolog\Handler\StreamHandler * \Monolog\Handler\SyslogHandler, (*14)

v1.1.0 * \Monolog\Handler\HipChatHandler * \Monolog\Handler\IFTTTHandler * \Monolog\Handler\LogEntriesHandler * \Monolog\Handler\NullHandler * \Monolog\Handler\RedisHandler * \Monolog\Handler\ZendMonitorHandler, (*15)

v1.3.0 * \Monolog\Handler\SlackHandler * \Monolog\Handler\SlackWebhookHandler * \Monolog\Handler\SlackbotHandler, (*16)

The Versions

17/01 2018

dev-master

9999999-dev

Simple Configuration Package for Monolog in Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel log config logging monolog

17/01 2018

dev-analysis-z4oa3w

dev-analysis-z4oa3w

Simple Configuration Package for Monolog in Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel log config logging monolog

11/05 2017

1.4.0

1.4.0.0

Simple Configuration Package for Monolog in Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel log config logging monolog

21/04 2017

v1.3.0

1.3.0.0

Simple Configuration Package for Monolog in Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel log config logging monolog

31/08 2016

v1.0.0

1.0.0.0

Simple Configuration Package for Monolog in Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel log config monolog