xDash::Logger::Dumb - Base class for EventLogger, ErrorLogger, MessageLogger and EmergencyLogger
package MessageLogger; # Uncomment the 1.line and comment out 2.line & 3.line below after debugging. use base xDash::Logger::Dumb; #use base xDash::Logger::File; #sub Open { shift->SUPER::Open( STDOUT ) }
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 hard coded in xDash::Sender, xDash::Receiver and xDash::Archivist (driver pattern). By deriving from the class, you have not to implement explicit any methods as nothing should be logged (dumb logger). The synopsis above is an example of the client script generated by the xdscr after debugging.
EventLogger
ErrorLogger
MessageLogger
EmergencyLogger
xDash::Sender
xDash::Receiver
xDash::Archivist
Any suggestions for improvement are welcomed!
If a bug is detected or nonconforming behavior, please send an error report to <jwach@cpan.org>.
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.
To install xdSRA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm xdSRA
CPAN shell
perl -MCPAN -e shell install xdSRA
For more information on module installation, please visit the detailed CPAN module installation guide.