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.
PHP-FIG: PSR-3
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: PHP-FIG: PSR-3
Awesome thanks for sharing!