NAME
Helix::Driver::Log::Basic - basic log driver for Helix::Framework.
SYNOPSIS
Somewhere in application controller:
my ($r, $log);
$r = Helix::Core::Registry->get_instance;
$log = $r->loader->get_object("Helix::Driver::Log::Basic");
$log->notice("Something happened");
$log->warning("Something not so good happened");
$log->error("Something bad happened");
DESCRIPTION
The Helix::Driver::Log::Basic is a simple log driver for Helix Framework. 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 Helix::Driver::Log.
close()
Inherited from "close()" in Helix::Driver::Log.
notice($msg)
Implementation of abstract method from "notice($msg)" in Helix::Driver::Log.
warning($msg)
Implementation of abstract method from "warning($msg)" in Helix::Driver::Log.
error($msg)
Implementation of abstract method from "error($msg)" in Helix::Driver::Log.
SEE ALSO
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