Download the PHP package cherry-project/logger without Composer
On this page you can find all versions of the php package cherry-project/logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cherry-project/logger
More information about cherry-project/logger
Files in cherry-project/logger
Download cherry-project/logger
More information about cherry-project/logger
Files in cherry-project/logger
Vendor cherry-project
Package logger
Short Description Cherry-project logger
License MIT
Homepage https://github.com/ABGEO07/cherry-logger
Package logger
Short Description Cherry-project logger
License MIT
Homepage https://github.com/ABGEO07/cherry-logger
Please rate this library. Is it a good library?
Informations about the package logger
cherry-logger
The Cherry-project logger
Including
Install from composer composer require cherry-project/logger
Include Autoloader in your main file (Ex.: index.php)
Import class
Set logs directory
Crete class new object
Logger class takes two arguments:
- Log Name, the logs filename {LogName}.log (Default 'app').
- Logs Directory(Default '/var/log').
Logger methods
The logger has 4 Log types:
- info();
- warning();
- error();
- debug()
and additional methods:
- clear() clear logs in current instance;
- count() get logs count in current instance;
Call methods
Also you can call more then one method from one object:
If you need logs count in current instance, you might use count() method:
You can clear all the logs in the current instance using the clear() method:
2019 © Cherry-project
All versions of logger with dependencies
PHP Build Version
Package Version
The package cherry-project/logger contains the following files
Loading the files please wait ....