NAME
xDash::Logger::File - Base class for EventLogger, ErrorLogger, MessageLogger and EmergencyLogger
SYNOPSIS
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
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
Any suggestions for improvement are welcomed!
If a bug is detected or nonconforming behavior, please send an error report to <jwach@cpan.org>.
COPYRIGHT
Copyright 2005 Jerzy Wachowiak <jwach@cpan.org>
This library is free software; you can redistribute it and/or modify it under the terms of the Apache 2.0 license attached to the module.