Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Log-Any CPAN distribution.

Maintainer(s)' notes

DO NOT FILE TICKETS HERE

Instead, file tickets on Github here → Log Any Issues.

Report information
The Basics
Id: 83220
Status: resolved
Priority: 0/
Queue: Log-Any

People
Owner: Nobody in particular
Requestors: slagelwa [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.14
Fixed in: (no value)



Subject: logwarn() and logdie()
Awesome module. Love it and really hope it gets put in core perl. I was wondering if you'd consider adding logwarn() and logdie() methods? A number of logging packages (well at least log4Perl) contain these very useful shortcuts for logging with a warning or logging and then exiting. Its rather nice to be able to replace: $logger->fatal($err) && die($err); with $log->logdie($err); Cheers
I'm taking over maintenance and reviewing RT tickets. This is a reasonable request, but there are so many variations people might want. At one extreme, every log and logf method could have "*_warn", "*_die", "*_carp", "*_croak", "*_cluck", "*_confess" variations. That's a lot of methods to add, but they could be generated fairly easily in the Log::Any::Adapter::Core class and then all Adapters would benefit.