Download the PHP package ingenerator/kohana-logger without Composer
On this page you can find all versions of the php package ingenerator/kohana-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ingenerator/kohana-logger
More information about ingenerator/kohana-logger
Files in ingenerator/kohana-logger
Package kohana-logger
Short Description Provides PSR-compatible logging and logging enhancements for Kohana
License BSD-3-Clause
Homepage https://github.com/ingenerator/kohana-logger
Informations about the package kohana-logger
KohanaLogger - Provides PSR-compatible logging and logging enhancements for Kohana
KohanaLogger is a small set of classes that provides a PSR-3 compatible interface to the standard Kohana log, and a few extra logging utility classes.
Installation
Add config to your composer.json and run composer update
to install it.
In your bootstrap:
Basic Usage
This package is not designed to support kohana-style transparent extension - classes will be loaded by the composer autoloader. If you want to extend the provided classes, we recommend the use of a service container.
To inject the standard Kohana log to a class that takes a PSR3 log instance:
By default the class attaches to the global Kohana::$log, but you can provide an instance to attach to if required.
Testing and developing
kohana-loggers has a full suite of PhpSpec specifications. You'll need a skeleton Kohana application to run them, you can use koharness to create one. See travis.yml for the build steps required.
Contributions will only be accepted if they are accompanied by well structured specs. Installing with composer should get you everything you need to work on the project.
License
kohana-logger is copyright 2014 inGenerator Ltd and released under the BSD license.