public
|
#
__construct( string $path, integer|null $maxFileSize = null )
Constructor.
Parameters
- $path
- File path
- $maxFileSize
- Maximum file size
|
|
public
|
#
add( array $data )
Adds a log entry.
Parameters
|
|
public
rex_log_entry
|
#
current( )
Returns
Implementation of
Iterator::current()
|
|
public
|
#
next( )
Reads the log file backwards line by line (each call reads one line).
Reads the log file backwards line by line (each call reads one line).
Implementation of
Iterator::next()
|
|
public
|
#
key( )
Implementation of
Iterator::key()
|
|
public
|
#
valid( )
Implementation of
Iterator::valid()
|
|
public
|
#
rewind( )
Implementation of
Iterator::rewind()
|
|
public static
boolean
|
#
delete( string $path )
Deletes a log file and its rotations.
Deletes a log file and its rotations.
Parameters
Returns
boolean bool
|
|