The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Foca::Tools::Logger - Main logger interface, uses log4perl

DESCRIPTION

Main logger interface, uses log4perl

Methods and functions

init_logger()

Creates the logger object.

use_debug($on)

Turn on (by default) or off debug mode.

log_connection($ip)

Logs a connection regardless if it is a legit request or not.

log_request($ip, $url_path)

Logs a request. Requires the IP and a URL path.

log_die($msg)

Dies with log4perl sending a logdie()

log_error($msg)

Logs an error, but not fatal errors to kill the app.

log_warn($msg)

Logs a a warning.

log_info($msg)

Logs an info message (something handy, just as a FYI).

log_debug($msg)

Handy for debug messsages.

COPYRIGHT

Copyright (c) 2010-2012 Yahoo! Inc. All rights reserved.

LICENSE

This program is free software. You may copy or redistribute it under the same terms as Perl itself. Please see the LICENSE file included with this project for the terms of the Artistic License under which this project is licensed.

AUTHORS

Pablo Fischer (pablo@pablo.com.mx)