Skip to content

Commit

Permalink
update to CakePHP2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kagasawa committed Oct 11, 2011
1 parent a3949ca commit 7e7ba69
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# Yalog: Yet Another Logger for CakePHP #
# Yalog: Yet Another Logger for CakePHP2.0RC3 #

## RotateFileLog ##

### Usage ###

First, put `yalog' directory on app/plugins in your CakePHP application.
First, put `Yalog' directory on app/Plugin in your CakePHP application.

Second, add the following code in bootstrap.php.

<?php

CakePlugin::load('Yalog');
// or
// CakePlugin::loadAll();

App::uses('CakeLog', 'Log');
CakeLog::config('RotateFileLog',
array(
'engine' => 'Yalog.RotateFileLog'
Expand All @@ -26,10 +32,12 @@ Second, add the following code in bootstrap.php.

### Usage ###

First, put `yalog' directory on app/plugins in your CakePHP application.
First, put `Yalog' directory on app/Plugin in your CakePHP application.

Second, put log4php source directory on app/plugins/yalog/vendors/log4php in your CakePHP application.
Second, put log4php source directory on app/Plugin/Yalog/Vendor/log4php in your CakePHP application.

http://logging.apache.org/log4php/download.html
Third, add the following code in bootstrap.php.

<?php
Expand All @@ -42,8 +50,8 @@ Third, add the following code in bootstrap.php.

Modify following,

- app/plugins/yalog/libs/log/log4php.properties
- Log4php::write() in app/plugins/yalog/libs/log/log4php.php
- app/Plugin/Yalog/Lib/Log/Engine/log4php.properties
- Log4php::write() in app/Plugin/Yalog/Lib/Log/Engine/log4php.php

## Adjust level of log output ##

Expand Down

0 comments on commit 7e7ba69

Please sign in to comment.