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

NAME

Log::Handler::Levels - All levels for Log::Handler.

DESCRIPTION

METHODS

Log level methods

debug()
info()
notice()
warning()
error(), err()
critical(), crit()
alert()
emergency(), emerg()

Checking for active levels

is_debug()
is_info()
is_notice()
is_warning()
is_error(), is_err()
is_critical(), is_crit()
is_alert()
is_emergency(), is_emerg()

Special level

fatal()

Alternative for the levels critical - emergency.

is_fatal()

Check if one of the levels critical - emergency is active.

Log and trace

These methods are useful if you want to add a full backtrace to your message.

Maybe you want to intercept unexpected errors and want to know who called die().

    $SIG{__DIE__} = sub { $log->fatal_and_trace(@_) };

Or maybe you just want to know who called who

    $log->info_and_trace('who called who');
debug_and_trace()
info_and_trace()
notice_and_trace()
warning_and_trace()
error_and_trace(), err_and_trace()
critical_and_trace(), crit_and_trace()
alert_and_trace()
emergency_and_trace(), emerg_and_trace()
fatal_and_trace()

Log and die

These methods log the message to the output and then call Carp::croak().

error_and_die(), err_and_die()
critical_and_die(), crit_and_die()
alert_and_die()
emergency_and_die(), emerg_and_die()
fatal_and_die()

Log and croak

These methods log the message to the output and then call Carp::croak() with CarpLevel+3

error_and_croak(), err_and_croak()
critical_and_croak(), crit_and_croak()
alert_and_croak()
emergency_and_croak(), emerg_and_croak()
fatal_and_croak()

Log and warn/carp

warn()

This method log the message as warning to the output and then call Carp::carp.

carp()

This method log the message as warning to the output and then call Carp::carp with CarpLevel+3.

PREREQUISITES

    Carp

EXPORTS

No exports.

REPORT BUGS

Please report all bugs to <jschulz.cpan(at)bloonix.de>.

AUTHOR

Jonny Schulz <jschulz.cpan(at)bloonix.de>.

COPYRIGHT

Copyright (C) 2007 by Jonny Schulz. All rights reserved.

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