Андрей Мищенко > Log-Unrotate > Log::Unrotate::Cursor

Download:
Log-Unrotate-1.32.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 1.32   Source  

NAME ^

Log::Unrotate::Cursor - abstract class for unrotate cursors

VERSION ^

version 1.32

DECRIPTION ^

Log::Unrotate keeps its position in persistent objects called cursors.

See Log::Unrotate::Cursor::File for the default cursor implementation.

METHODS ^

read()

Get the hashref with a position data.

Data usually includes Position, Inode, LastLine and LogFile keys.

commit($position)

Save a new position into the cursor.

clean()

Clean all data from the cursor.

rollback()

Rollback the cursor to some previous value.

Returns 1 on success, 0 on fail.

syntax highlighting: