2017 © Pedro Peláez
 

library monolog-init

Very basic and light Dependency Injector Container for Monolog

image

kamisama/monolog-init

Very basic and light Dependency Injector Container for Monolog

  • Tuesday, January 27, 2015
  • by kamisama
  • Repository
  • 1 Watchers
  • 0 Stars
  • 268,234 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

Monolog-Init

Very basic and light Dependency Injector Container for Monolog, (*1)

Helps create the following handler, (*2)

  • Cube
  • RotatingFile
  • ChromePHP
  • Syslog
  • Socket
  • MongoDB
  • CouchDB
  • HipChat
  • PushOver
  • ZendMonitor
  • Stream
  • Redis

from 2 strings : <handlerName> <comma-separated list of arguments>, (*3)

The second argument will be split, and pass to the handler __construct()., (*4)

Usage

Download and include the MonologInit class in your code, or install it via Composer., (*5)

Usage example :, (*6)

$logger = new MonologInit('Cube', 'udp://127.0.0.1:1080');

To pass more than one parameter, separate them with a comma, (*7)

$logger = new MonologInit('Cube', 'udp://127.0.0.1:1080,0,1');

And use it like that :, (*8)

$logger->getInstance()->addInfo('hi ! This is my first log');

Where to use

This container is usefull for creating remote log, for instance via CLI, where you can't pass object., (*9)

There is already a SymfonyBundle that does the same thing, but it's … very heavy., (*10)

The Versions

27/01 2015

dev-master

9999999-dev http://www.github.com/kamisama/monolog-init/

Very basic and light Dependency Injector Container for Monolog

  Sources   Download

MIT

The Requires

 

log

27/01 2015

0.2.1

0.2.1.0 http://www.github.com/kamisama/monolog-init/

Very basic and light Dependency Injector Container for Monolog

  Sources   Download

MIT

The Requires

 

log

16/01 2015

0.2.0

0.2.0.0 http://www.github.com/kamisama/monolog-init/

Very basic and light Dependency Injector Container for Monolog

  Sources   Download

MIT

The Requires

 

log

20/06 2013

0.1.1

0.1.1.0 http://www.github.com/kamisama/monolog-init/

Very basic and light Dependency Injector Container for Monolog

  Sources   Download

MIT

The Requires

 

log