The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Log::Unrotate::Cursor - abstract unrotate cursor

VERSION

version 1.28

DECRIPTION

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

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

METHODS

read()

Get hashref with position data.

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

commit($position)

Save new position into cursor.

clean()

Clean all data from cursor.

rollback()

Rollback cursor to some previous value.

Returns 1 on success, 0 on fail.

AUTHOR

Vyacheslav Matjukhin <mmcleric@yandex-team.ru>