ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Stores logs to files that are rotated every day and a limited number of files are kept. More...
Public Member Functions | ||||
__construct ($filename, $maxFiles=0, $level=Logger::DEBUG, $bubble=true, $filePermission=null, $useLocking=false) | ||||
close () | ||||
{} More... | ||||
setFilenameFormat ($filenameFormat, $dateFormat) | ||||
![]() | ||||
__construct ($stream, $level=Logger::DEBUG, $bubble=true, $filePermission=null, $useLocking=false) | ||||
close () | ||||
{} More... | ||||
![]() | ||||
handle (array $record) | ||||
{Handles a record.All records may be passed to this method, and the handler should discard those that it does not want to handle.The return value of this function controls the bubbling process of the handler stack. Unless the bubbling is interrupted (by returning true), the Logger class will keep on calling further handlers in the stack with a given log record.
| ||||
![]() | ||||
__construct ($level=Logger::DEBUG, $bubble=true) | ||||
isHandling (array $record) | ||||
{Checks whether the given record will be handled by this handler.This is mostly done for performance reasons, to avoid calling processors for nothing.Handlers should still check the record levels within handle(), returning false in isHandling() is no guarantee that handle() will not be called, and isHandling() might not be called for a given record.
| ||||
handleBatch (array $records) | ||||
{Handles a set of records at once.
| ||||
close () | ||||
Closes the handler. More... | ||||
pushProcessor ($callback) | ||||
{Adds a processor in the stack.
| ||||
popProcessor () | ||||
{Removes the processor on top of the stack and returns it.
| ||||
setFormatter (FormatterInterface $formatter) | ||||
{Sets the formatter.
| ||||
getFormatter () | ||||
{Gets the formatter.
| ||||
setLevel ($level) | ||||
Sets minimum logging level at which this handler will be triggered. More... | ||||
getLevel () | ||||
Gets minimum logging level at which this handler will be triggered. More... | ||||
setBubble ($bubble) | ||||
Sets the bubbling behavior. More... | ||||
getBubble () | ||||
Gets the bubbling behavior. More... | ||||
__destruct () | ||||
Protected Member Functions | |
write (array $record) | |
{} More... | |
rotate () | |
Rotates the files. More... | |
getTimedFilename () | |
getGlobPattern () | |
![]() | |
write (array $record) | |
{} More... | |
![]() | |
write (array $record) | |
Writes the record down to the log of the implementing handler. More... | |
processRecord (array $record) | |
Processes a record. More... | |
![]() | |
getDefaultFormatter () | |
Gets the default formatter. More... | |
Protected Attributes | |
$filename | |
$maxFiles | |
$mustRotate | |
$nextRotation | |
$filenameFormat | |
$dateFormat | |
![]() | |
$stream | |
$url | |
$filePermission | |
$useLocking | |
![]() | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Stores logs to files that are rotated every day and a limited number of files are kept.
This rotation is only intended to be used as a workaround. Using logrotate to handle the rotation is strongly encouraged when you can use it.
Definition at line 25 of file RotatingFileHandler.php.
Monolog\Handler\RotatingFileHandler::__construct | ( | $filename, | |
$maxFiles = 0 , |
|||
$level = Logger::DEBUG , |
|||
$bubble = true , |
|||
$filePermission = null , |
|||
$useLocking = false |
|||
) |
string | $filename | |
integer | $maxFiles | The maximal amount of files to keep (0 means unlimited) |
integer | $level | The minimum logging level at which this handler will be triggered |
Boolean | $bubble | Whether the messages that are handled can bubble up the stack or not |
int | null | $filePermission | Optional file permissions (default (0644) are only for owner read/write) |
Boolean | $useLocking | Try to lock log file before doing any writes |
Definition at line 42 of file RotatingFileHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, Monolog\Handler\RotatingFileHandler\$filename, Monolog\Handler\StreamHandler\$filePermission, Monolog\Handler\AbstractHandler\$level, Monolog\Handler\RotatingFileHandler\$maxFiles, Monolog\Handler\StreamHandler\$useLocking, and Monolog\Handler\RotatingFileHandler\getTimedFilename().
Monolog\Handler\RotatingFileHandler::close | ( | ) |
{}
Definition at line 56 of file RotatingFileHandler.php.
References Monolog\Handler\RotatingFileHandler\rotate().
Referenced by Monolog\Handler\RotatingFileHandler\setFilenameFormat(), and Monolog\Handler\RotatingFileHandler\write().
|
protected |
Definition at line 139 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\rotate().
|
protected |
Definition at line 123 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\__construct(), Monolog\Handler\RotatingFileHandler\rotate(), and Monolog\Handler\RotatingFileHandler\setFilenameFormat().
|
protected |
Rotates the files.
Definition at line 94 of file RotatingFileHandler.php.
References $file, Monolog\Handler\RotatingFileHandler\getGlobPattern(), and Monolog\Handler\RotatingFileHandler\getTimedFilename().
Referenced by Monolog\Handler\RotatingFileHandler\close().
Monolog\Handler\RotatingFileHandler::setFilenameFormat | ( | $filenameFormat, | |
$dateFormat | |||
) |
Definition at line 65 of file RotatingFileHandler.php.
References Monolog\Handler\RotatingFileHandler\$dateFormat, Monolog\Handler\RotatingFileHandler\$filenameFormat, Monolog\Handler\RotatingFileHandler\close(), and Monolog\Handler\RotatingFileHandler\getTimedFilename().
|
protected |
{}
Definition at line 76 of file RotatingFileHandler.php.
References Monolog\Handler\RotatingFileHandler\close().
|
protected |
Definition at line 32 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\setFilenameFormat().
|
protected |
Definition at line 27 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\__construct().
|
protected |
Definition at line 31 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\setFilenameFormat().
|
protected |
Definition at line 28 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\__construct().
|
protected |
Definition at line 29 of file RotatingFileHandler.php.
|
protected |
Definition at line 30 of file RotatingFileHandler.php.