Eidolon::Driver::Log - Eidolon generic log driver.
Example log driver:
package MyApp::Driver::Log; use base qw/Eidolon::Driver::Log/; sub notice { my ($self, $msg) = @_; throw DriverError::Log::Open("This is just an example!"); } sub warning { my ($self, $msg) = @_; throw DriverError::Log::Open("This is just an example!"); } sub error { my ($self, $msg) = @_; throw DriverError::Log::Open("This is just an example!"); }
The Eidolon::Driver::Log is a generic log driver for Eidolon. It declares some functions that are common for all driver types and some abstract methods, that must be overloaded in ancestor classes. All log drivers should subclass this package.
Class constructor.
Opens log handle. Abstract method, should be overloaded by the ancestor class.
Closes log handle. Abstract method, should be overloaded by the ancestor class.
Log a notice message $msg. Abstract method, should be overloaded by the ancestor class.
$msg
Log a warning message $msg. Abstract method, should be overloaded by the ancestor class.
Log an error message $msg. Abstract method, should be overloaded by the ancestor class.
Eidolon, Eidolon::Driver::Log::Exceptions
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Anton Belousov, <abel@cpan.org>
Copyright (c) 2009, Atma 7, http://www.atma7.com
To install Eidolon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eidolon
CPAN shell
perl -MCPAN -e shell install Eidolon
For more information on module installation, please visit the detailed CPAN module installation guide.