Class rex_log_file

Log file class.

rex_log_file implements Iterator
Package: redaxo\core
Author: gharlan
Located at redaxo/src/core/lib/util/log_file.php

Methods summary

public
# __construct( string $path, integer|null $maxFileSize = null )

Constructor.

public
# add( array $data )

Adds a log entry.

public rex_log_entry
# current( )
public
# next( )

Reads the log file backwards line by line (each call reads one line).

public
# key( )
public
# valid( )
public
# rewind( )
public static boolean
# delete( string $path )

Deletes a log file and its rotations.