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

Download:
Log-Unrotate-1.28.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 1.28   Source   Latest Release: Log-Unrotate-1.32

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>

syntax highlighting: