Log::Handler::Levels - All levels for Log::Handler.
Alternative for the levels critical - emergency.
critical
emergency
Check if one of the levels critical - emergency is active.
These methods are useful if you want to add a full backtrace to your message.
Maybe you like do something like
$SIG{__DIE__} = sub { $log->fatal_and_trace(@_) };
Or just if you want to know who called who
$log->info_and_trace('who called who');
The default exit code is 1
$log->error_and_exit('an error happends')
Pass the exit code yourself
$log->error_and_exit(9 => 'an error happends') $log->info_and_exit(0 => 'program stopped')
Note that if the first argument is a number then this number is used as exit code.
Log the message to the output and execute Carp::croak().
Carp::croak()
Log the message to the output and execute Carp::croak() with CarpLevel+3.
CarpLevel+3
Log the message as warning to the output and execute C<Carp::carp> with C<CarpLevel+3>.
Log the message as warning to the output and execute C<Carp::carp>.
Carp
No exports.
Please report all bugs to <jschulz.cpan(at)bloonix.de>.
Jonny Schulz <jschulz.cpan(at)bloonix.de>.
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.
To install Log::Handler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Handler
CPAN shell
perl -MCPAN -e shell install Log::Handler
For more information on module installation, please visit the detailed CPAN module installation guide.