system system.base system.caching system.caching.dependencies system.collections system.console system.db system.db.ar system.db.schema system.db.schema.cubrid system.db.schema.mssql system.db.schema.mysql system.db.schema.oci system.db.schema.pgsql system.db.schema.sqlite system.gii system.i18n system.i18n.gettext system.logging system.test system.utils system.validators system.web system.web.actions system.web.auth system.web.filters system.web.form system.web.helpers system.web.renderers system.web.services system.web.widgets system.web.widgets.captcha system.web.widgets.pagers zii.behaviors zii.widgets zii.widgets.grid zii.widgets.jui

ILogFilter

system.logging
继承 interface ILogFilter
子类 CChainedLogFilter, CLogFilter
可用自 1.1.11
源码 framework/base/interfaces.php
ILogFilter is the interface that must be implemented by log filters.

A log filter preprocesses the logged messages before they are handled by a log route. You can attach classes that implement ILogFilter to CLogRoute::$filter.

公共方法

隐藏继承的方法

方法描述被定义在
filter() This method should be implemented to perform actual filtering of log messages ILogFilter

方法详情

filter() 方法
abstract public void filter(array &$logs)
$logs array list of messages. Each array element represents one message with the following structure: array( [0] => message (string) [1] => level (string) [2] => category (string) [3] => timestamp (float, obtained by microtime(true));
源码: framework/base/interfaces.php#629 (显示)
public function filter(&$logs);

This method should be implemented to perform actual filtering of log messages by working on the array given as the first parameter. Implementation might reformat, remove or add information to logged messages.