Log::Handler::Levels(3pm) | User Contributed Perl Documentation | Log::Handler::Levels(3pm) |
Log::Handler::Levels - All levels for Log::Handler.
Base class for Log::Handler.
Just for internal usage and documentation.
$SIG{__DIE__} = sub { $log->trace(emergency => @_) };
By default the backtrace is logged as level "debug".
# would log with the level debug $log->trace('who called who');
If you want to log with another level then you can pass the level as first argument:
$log->trace(info => $message);
my %hash = (foo => 1, bar => 2); $log->dump(\%hash);
If you want to log with another level then you can pass the level as first argument:
$log->dump($level => \%hash);
$log->die('an emergency error here');
If you want to log with another level, then you can pass the level as first argument:
$log->die(fatal => 'an emergency error here');
$log->log(info => 'an info message');
Is the same like
$log->info('an info message');
and
$log->log('an info message');
If you log without a level then the default level is "info".
Carp Data::Dumper
No exports.
Please report all bugs to <jschulz.cpan(at)bloonix.de>.
If you send me a mail then add Log::Handler into the subject.
Jonny Schulz <jschulz.cpan(at)bloonix.de>.
Copyright (C) 2007-2009 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.
2022-08-28 | perl v5.34.0 |