dev-master
9999999-dev https://github.com/ingenerator/kohana-loggerProvides PSR-compatible logging and logging enhancements for Kohana
BSD BSD-3-Clause
The Requires
- kohana/core 3.3.*
- psr/log ~1.0
- php >=5.5
The Development Requires
kohana
Wallogit.com
2017 © Pedro Peláez
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., (*1)
Add config to your composer.json and run composer update to install it., (*2)
{
"require": { "ingenerator/kohana-logger": "0.1.*@dev" }
}
In your bootstrap:, (*3)
/** * Enable the composer autoloader */ require_once(__DIR__.'/../vendor/autoload.php');
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., (*4)
To inject the standard Kohana log to a class that takes a PSR3 log instance:, (*5)
$instance = new ThirdPartyClass(new Ingenerator\KohanaLogger\KohanaLogger);
By default the class attaches to the global Kohana::$log, but you can provide an instance to attach to if required., (*6)
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., (*7)
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., (*8)
kohana-logger is copyright 2014 inGenerator Ltd and released under the BSD license., (*9)
Provides PSR-compatible logging and logging enhancements for Kohana
BSD BSD-3-Clause
kohana