PHP Class Prado\Util\TFileLogRoute
TFileLogRoute records log messages in files.
The log files are stored under {@link setLogPath LogPath} and the file name
is specified by {@link setLogFile LogFile}. If the size of the log file is
greater than {@link setMaxFileSize MaxFileSize} (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 {@link setMaxLogFiles MaxLogFiles}
specifies how many files to be kept.
Mostra file
Open project: pradosoft/prado
Public Methods
Protected Methods
Method Details
getLogFile()
public method
getLogPath()
public method
public getLogPath ( ) : string |
return |
string |
directory storing log files. Defaults to application runtime path. |
getMaxFileSize()
public method
getMaxLogFiles()
public method
processLogs()
protected method
Saves log messages in files.
rotateFiles()
protected method
setLogFile()
public method
setLogPath()
public method
setMaxFileSize()
public method
setMaxLogFiles()
public method