thulin82 / clog
PHP classes for logging framework
v1.0
2016-09-29 13:37 UTC
Requires
- php: >=5.4
This package is not auto-updated.
Last update: 2024-10-26 20:26:54 UTC
README
Using CLog in Anax-MVC
First update your composer.json with the following:
"require": {
"thulin82/clog": "dev-master"
},
Then update with:
composer update
To add CLog, the easiest way is either add it as a shared service:
$this->setShared('log', function () { $log = new \thulin82\CLog\CLog(); return $log; });
or to initialize it when/where you need it:
$log = new \thulin82\CLog\CLog();
Examples
An example file is located in webroot/CLogExample.php to show off the different ways you can use CLog
Docker
Build
docker build -t clog .