Anton Belousov > Eidolon-Driver-Log-Basic > Eidolon::Driver::Log::Basic

Download:
Eidolon-Driver-Log-Basic-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Eidolon::Driver::Log::Basic - basic log driver for Eidolon.

SYNOPSIS ^

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");

DESCRIPTION ^

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.

METHODS ^

new($logs_dir, $file)

Class constructor. $logs_dir - a directory, where log file $file will be saved.

open()

Implementation of abstract method from "open()" in Eidolon::Driver::Log.

close()

Inherited from "close()" in Eidolon::Driver::Log.

notice($msg)

Implementation of abstract method from "notice($msg)" in Eidolon::Driver::Log.

warning($msg)

Implementation of abstract method from "warning($msg)" in Eidolon::Driver::Log.

error($msg)

Implementation of abstract method from "error($msg)" in Eidolon::Driver::Log.

SEE ALSO ^

Eidolon, Eidolon::Driver::Log

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR ^

Anton Belousov, <abel@cpan.org>

COPYRIGHT ^

Copyright (c) 2009, Atma 7, http://www.atma7.com

syntax highlighting: