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.
Afficher le fichier
Open project: pradosoft/prado
Méthodes publiques
Méthodes protégées
Method Details
getLogFile()
public méthode
getLogPath()
public méthode
public getLogPath ( ) : string |
Résultat |
string |
directory storing log files. Defaults to application runtime path. |
getMaxFileSize()
public méthode
getMaxLogFiles()
public méthode
processLogs()
protected méthode
Saves log messages in files.
rotateFiles()
protected méthode
setLogFile()
public méthode
setLogPath()
public méthode
setMaxFileSize()
public méthode
setMaxLogFiles()
public méthode