Log::Deep::File - Object for keeping track of info related to a log file.


Log-Deep documentation  | view source Contained in the Log-Deep distribution.

Index


NAME

Top

Log::Deep::File - Object for keeping track of info related to a log file.

VERSION

Top

This documentation refers to Log::Deep::File version 0.3.1.

SYNOPSIS

Top

   use Log::Deep::File;

   # Create a new object
   my $file = Log::Deep::File->new('deep.log');

   # read the log file
   while ( my $line = $file->line ) {
       # so stuff
       ...
   }

   # use the file name in a string
   print "Finished reading the file '$file'\n";

   # reset the handle so that we can start again
   $file->reset;

DESCRIPTION

Top

SUBROUTINES/METHODS

Top

new ( $name )

Param: $name - string - The log file name to be tracked

Return: Log::Deep::File - A new object

Description: Creates a new object and opens the specified file.

line ( )

Return: The next line read from the log file or undef if the end of the file has been reached

Description: Reads the next line of the log file.

name ( )

Return: The name of the log file

reset ( )

Description: Resets the file handle so that it can be attempted to be read again at a later time.

DIAGNOSTICS

Top

CONFIGURATION AND ENVIRONMENT

Top

DEPENDENCIES

Top

INCOMPATIBILITIES

Top

BUGS AND LIMITATIONS

Top

There are no known bugs in this module.

Please report problems to Ivan Wills (ivan.wills@gmail.com).

Patches are welcome.

AUTHOR

Top

Ivan Wills - (ivan.wills@gmail.com)

LICENSE AND COPYRIGHT

Top


Log-Deep documentation  | view source Contained in the Log-Deep distribution.