Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k1LoW/yalog
Yet Another Logger for CakePHP
https://github.com/k1LoW/yalog
Last synced: 3 months ago
JSON representation
Yet Another Logger for CakePHP
- Host: GitHub
- URL: https://github.com/k1LoW/yalog
- Owner: k1LoW
- Created: 2011-03-05T14:12:40.000Z (over 13 years ago)
- Default Branch: 2.0
- Last Pushed: 2014-10-23T06:43:48.000Z (about 10 years ago)
- Last Synced: 2024-07-16T03:50:39.538Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 219 KB
- Stars: 19
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yalog: Yet Another Logger for CakePHP2.x #
[![Build Status](https://secure.travis-ci.org/k1LoW/yalog.png?branch=2.0)](http://travis-ci.org/k1LoW/yalog)
## RotateFileLog ##
### Usage ###
First, put `Yalog' directory on app/Plugin in your CakePHP application.
Second, add the following code in bootstrap.php.
'Yalog.RotateFileLog',
'types' => array('notice', 'info', 'debug'),
'file' => 'debug',
));
CakeLog::config('error', array(
'engine' => 'Yalog.RotateFileLog',
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
'file' => 'error',
));### Configure ###
#### Rotate ####
'Yalog.Log4php',
'types' => array('notice', 'info', 'debug'),
'file' => 'debug',
));
CakeLog::config('error', array(
'engine' => 'Yalog.Log4php',
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
'file' => 'error',
));### Configure ###
Modify following,
- app/Plugin/Yalog/Lib/Log/Engine/log4php.properties
- Log4php::write() in app/Plugin/Yalog/Lib/Log/Engine/log4php.php## License
MIT License