2017 © Pedro Peláez
 

cakephp-plugin yalog

Yalog: Yet Another Logger for CakePHP

image

k1low/yalog

Yalog: Yet Another Logger for CakePHP

  • Thursday, October 23, 2014
  • by k1LoW
  • Repository
  • 4 Watchers
  • 20 Stars
  • 1,545 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Yalog: Yet Another Logger for CakePHP

RotateFileLog

Usage

First, put `yalog' directory on app/plugins in your CakePHP application., (*1)

Second, add the following code in bootstrap.php., (*2)

<?php
    CakeLog::config('RotateFileLog',
                array(
                      'engine' => 'Yalog.RotateFileLog'
                      ));

Configure

Rotate

<?php
    Configure::write('Yalog.RotateFileLog.weekly', true);
    Configure::write('Yalog.RotateFileLog.rotate', 4);

Log4php (Sample)

Usage

First, put `yalog' directory on app/plugins in your CakePHP application., (*3)

Second, put log4php source directory on app/plugins/yalog/vendors/log4php in your CakePHP application., (*4)

Third, add the following code in bootstrap.php., (*5)

<?php
    CakeLog::config('Log4php',
                array(
                      'engine' => 'Yalog.Log4php'
                      ));

Configure

Modify following,, (*6)

  • app/plugins/yalog/libs/log/log4php.properties
  • Log4php::write() in app/plugins/yalog/libs/log/log4php.php

Adjust level of log output

Usage

Add the following code in bootstrap.php., (*7)

<?php
    CakeLog::config('Yalog..OutputLevel', LOG_WARNING);

Set lower level than level that you want to output the log at. (LOG_ERROR:2 > LOG_WARNING:4 > LOG_NOTICE:5 > LOG_INFO:6 > LOG_DEBUG:7), (*8)

In the example, log of "LOG_ERROR", "LOG_WARNING" and the others are output., (*9)

All output is stopped when it is set to false., (*10)

<?php
    CakeLog::config('Yalog..OutputLevel', false);

License

MIT License, (*11)

The Versions

23/10 2014

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/k1LoW/yalog

Yalog: Yet Another Logger for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

logger cakephp

23/10 2014

2.5.5

2.5.5.0 https://github.com/k1LoW/yalog

Yalog: Yet Another Logger for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

logger cakephp