2017 © Pedro Peláez
 

library monolog-init

Very basic and light Dependency Injector Container for Monolog

image

webtotal/monolog-init

Very basic and light Dependency Injector Container for Monolog

  • Tuesday, June 3, 2014
  • by webtotal
  • Repository
  • 2 Watchers
  • 0 Stars
  • 984 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 3 Versions
  • 26 % 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

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

03/06 2014

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

 

by Kamil Kowalski

log

03/06 2014

0.1.2

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

Very basic and light Dependency Injector Container for Monolog

  Sources   Download

MIT

The Requires

 

by Kamil Kowalski

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