ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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... | ||||
reset () | ||||
{} More... | ||||
setFilenameFormat ($filenameFormat, $dateFormat) | ||||
Public Member Functions inherited from Monolog\Handler\StreamHandler | ||||
__construct ($stream, $level=Logger::DEBUG, $bubble=true, $filePermission=null, $useLocking=false) | ||||
close () | ||||
{} More... | ||||
getStream () | ||||
Return the currently active stream if it is open. More... | ||||
getUrl () | ||||
Return the stream URL if it was configured with a URL and not an active resource. More... | ||||
Public Member Functions inherited from Monolog\Handler\AbstractProcessingHandler | ||||
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.
| ||||
Public Member Functions inherited from Monolog\Handler\AbstractHandler | ||||
__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 () | ||||
reset () | ||||
Data Fields | |
const | FILE_PER_DAY = 'Y-m-d' |
const | FILE_PER_MONTH = 'Y-m' |
const | FILE_PER_YEAR = 'Y' |
Protected Member Functions | |
write (array $record) | |
{} More... | |
rotate () | |
Rotates the files. More... | |
getTimedFilename () | |
getGlobPattern () | |
Protected Member Functions inherited from Monolog\Handler\StreamHandler | |
write (array $record) | |
{} More... | |
streamWrite ($stream, array $record) | |
Write to stream. More... | |
Protected Member Functions inherited from Monolog\Handler\AbstractProcessingHandler | |
write (array $record) | |
Writes the record down to the log of the implementing handler. More... | |
processRecord (array $record) | |
Processes a record. More... | |
Protected Member Functions inherited from Monolog\Handler\AbstractHandler | |
getDefaultFormatter () | |
Gets the default formatter. More... | |
Protected Attributes | |
$filename | |
$maxFiles | |
$mustRotate | |
$nextRotation | |
$filenameFormat | |
$dateFormat | |
Protected Attributes inherited from Monolog\Handler\StreamHandler | |
$stream | |
$url | |
$filePermission | |
$useLocking | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
$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 | |
int | $maxFiles | The maximal amount of files to keep (0 means unlimited) |
int | $level | The minimum logging level at which this handler will be triggered |
bool | $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) |
bool | $useLocking | Try to lock log file before doing any writes |
Definition at line 46 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 60 of file RotatingFileHandler.php.
References Monolog\Handler\RotatingFileHandler\rotate().
Referenced by Monolog\Handler\RotatingFileHandler\setFilenameFormat(), and Monolog\Handler\RotatingFileHandler\write().
|
protected |
Definition at line 176 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\rotate().
|
protected |
Definition at line 160 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\__construct(), Monolog\Handler\RotatingFileHandler\rotate(), and Monolog\Handler\RotatingFileHandler\setFilenameFormat().
Monolog\Handler\RotatingFileHandler::reset | ( | ) |
{}
Implements Monolog\ResettableInterface.
Definition at line 72 of file RotatingFileHandler.php.
References Monolog\Handler\RotatingFileHandler\rotate().
|
protected |
Rotates the files.
Definition at line 125 of file RotatingFileHandler.php.
References Monolog\Handler\RotatingFileHandler\getGlobPattern(), and Monolog\Handler\RotatingFileHandler\getTimedFilename().
Referenced by Monolog\Handler\RotatingFileHandler\close(), and Monolog\Handler\RotatingFileHandler\reset().
Monolog\Handler\RotatingFileHandler::setFilenameFormat | ( | $filenameFormat, | |
$dateFormat | |||
) |
Definition at line 81 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 107 of file RotatingFileHandler.php.
References Monolog\Handler\RotatingFileHandler\close(), and Sabre\VObject\write().
|
protected |
Definition at line 36 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\setFilenameFormat().
|
protected |
Definition at line 31 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\__construct().
|
protected |
Definition at line 35 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\setFilenameFormat().
|
protected |
Definition at line 32 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandler\__construct().
|
protected |
Definition at line 33 of file RotatingFileHandler.php.
|
protected |
Definition at line 34 of file RotatingFileHandler.php.
const Monolog\Handler\RotatingFileHandler::FILE_PER_DAY = 'Y-m-d' |
Definition at line 27 of file RotatingFileHandler.php.
Referenced by Monolog\Handler\RotatingFileHandlerTest\dateFormatProvider(), Monolog\Handler\RotatingFileHandlerTest\rotationTests(), Monolog\Handler\RotatingFileHandlerTest\rotationWhenSimilarFilesExistTests(), and Monolog\Handler\RotatingFileHandlerTest\testDisallowFilenameFormatsWithoutDate().
const Monolog\Handler\RotatingFileHandler::FILE_PER_MONTH = 'Y-m' |
const Monolog\Handler\RotatingFileHandler::FILE_PER_YEAR = 'Y' |