PHP-FIG: PSR-3

Place to place any code snippets, completed games, or even uncompleted games for IR users to use.
Post Reply
nand
Posts: 6
Joined: Thu Mar 14, 2013 4:47 pm

PHP-FIG: PSR-3

Post by nand »

Hi guys,

Here's another implementation of a FIG standard, the LoggerInterface.
I've enabled it to work with a Facade/Gateway for the actual handling of "logging" the message, currently includes only a flat-file approach.

Preferably a config object would be passed to it, but this can be removed for other implementations.
No example code is provided, since only the Logger object needs to be instantiated and then kept somewhere until usage(I use a service locator).

Code: http://katelyn.nand.co.za/get/PSR-3-LoggerInterface.tgz

Enjoy.
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: PHP-FIG: PSR-3

Post by hallsofvallhalla »

Awesome thanks for sharing!
Post Reply

Return to “Code Sharing”