flushablelogrouter Processes logs every n entries

  1. Requirements
  2. Usage
  3. Note

By default logs are only processed at the end of a request. FlushableLogRouter will process the logs as soon as they are flushed. Additionally it will take care of emptying the logs of each route.

Requirements

Tested with Yii 1.1.6, but should also work with older versions.

Usage

Save the class file to your components folder and configure your application's log component to use this class. The example below will process logs every 10 entries.

'log' => array(
  'class'     => 'FlushableLogRouter',
  'autoFlush' => 10,
  'routes'    => array(...)
)

Note

This component changes the $autoFlush property of CLogger.

2 0
3 followers
357 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Logging
Tags:
Developed by: ciss
Created on: Mar 5, 2011
Last updated: 13 years ago

Downloads

show all