Class \Prado\Util\TFileLogRoute
TFileLogRoute class.
TFileLogRoute records log messages in files. The log files are stored under \Prado\Util\setLogPath and the file name is specified by \Prado\Util\setLogFile. If the size of the log file is greater than \Prado\Util\setMaxFileSize (in kilo-bytes), a rotation is performed, which renames the current log file by suffixing the file name with '.1'. All existing log files are moved backwards one place, i.e., '.2' to '.3', '.1' to '.2'. The property \Prado\Util\setMaxLogFiles specifies how many files to be kept.
Class hierarchy
Author: Qiang Xue <qiang.xue@gmail.com>Since: 3.0
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
processLogs(array<string|int, mixed> $logs, bool $final, array<string|int, mixed> $meta) : mixed
Saves log messages in files.
|
protected
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |