The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Log::Unrotate::Cursor::File - file keeping unrotate position

VERSION

version 1.33

SYNOPSIS

    use Log::Unrotate::Cursor::File;
    $cursor = Log::Unrotate::Cursor::File->new($file, { lock => "blocking" });

METHODS

new($file, $options)
new($file)

Construct a cursor from the file.

$options is an optional hashref.

lock option describes the locking behavior. See Log::Unrotate for details.

rollback_period option defines the target rollback time in seconds. If 0, rollback behaviour will be off.