Eidolon::Driver::Log::Basic - basic log driver for Eidolon.
Somewhere in application controller:
my ($r, $log); $r = Eidolon::Core::Registry->get_instance; $log = $r->loader->get_object("Eidolon::Driver::Log::Basic"); $log->notice("Something happened"); $log->warning("Something not so good happened"); $log->error("Something bad happened");
The Eidolon::Driver::Log::Basic is a simple log driver for Eidolon. It provides simple file logging, storing time (in Y-m-d H:M:S format), user request string, log level (notice, warning or error) and log message for each entry.
Class constructor. $logs_dir - a directory, where log file $file will be saved.
$logs_dir
$file
Implementation of abstract method from "open()" in Eidolon::Driver::Log.
Inherited from "close()" in Eidolon::Driver::Log.
Implementation of abstract method from "notice($msg)" in Eidolon::Driver::Log.
Implementation of abstract method from "warning($msg)" in Eidolon::Driver::Log.
Implementation of abstract method from "error($msg)" in Eidolon::Driver::Log.
Eidolon, Eidolon::Driver::Log
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::Driver::Log::Basic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eidolon::Driver::Log::Basic
CPAN shell
perl -MCPAN -e shell install Eidolon::Driver::Log::Basic
For more information on module installation, please visit the detailed CPAN module installation guide.