xDash::Logger::File - Base class for EventLogger, ErrorLogger, MessageLogger and EmergencyLogger


xDash documentation  | view source Contained in the xDash distribution.

Index


NAME

Top

xDash::Logger::File - Base class for EventLogger, ErrorLogger, MessageLogger and EmergencyLogger

SYNOPSIS

Top

 package EventLogger;
 use base xDash::Logger::File;
 # Check the correct file path for logger and
 # Uncomment 1.line and comment out 2.line below after debugging,
 # sub Open { shift->SUPER::Open( '/home/xdash/sender/event.log' ) }
 sub Open { shift->SUPER::Open( STDOUT ) }

DESCRIPTION

Top

USAGE

The module is developed in the object orientated way. It can be used as the base class for logging tasks, which have to implement a fixed set of methods called by the derived class EventLogger, ErrorLogger, MessageLogger and EmergencyLogger hardcoded in xDash::Sender, xDash::Receiver and xDash::Archivist (driver pattern). By deriving from the class, as the way of passing arguments, you have to implement explicit methods listed below. The synopsis above is an example of the client script generated by the xdscr.

METHODS

Open( $file_path|STDOUT|STDERR )

Sets the logger file to $file_path and opens it. STDOUT and STDERR set the logging to standard output or standard error.

BUGS

Top

Any suggestions for improvement are welcomed!

If a bug is detected or nonconforming behavior, please send an error report to <jwach@cpan.org>.

COPYRIGHT

Top

SEE ALSO

Top

xDash::Sender
xDash::Receiver
xDash::Archivist

xDash documentation  | view source Contained in the xDash distribution.