Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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