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: 56596
Status: resolved
Priority: 0/
Queue: Log-Any

People
Owner: Nobody in particular
Requestors: sharyanto [...] cpan.org
Cc:
AdminCc:

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



Subject: Please consider adding something like Log4perl's logdie()?
Maybe error_die() / fatal_die() or something. It's a shortcut for error()/fatal() + die using the same error message. It saves a couple of lines in the simplest case, and even more in the more complex case (especially with errorf()/fatalf()). Or maybe the log methods could return the generated string? That would be a more generic solution as we can do anything about it. (Btw, posted as another issue).
Similar to other issue - though it would be convenient, default Log::Any behavior (no adapter selected - null adapter) needs to have no side-effects. It wouldn't be clear what the null adapter should do for error_die / fatal_die. This is something you'll have to write your own wrapper for I'm afraid... :( On Wed Apr 14 14:55:52 2010, SHARYANTO wrote: Show quoted text
> Maybe error_die() / fatal_die() or something. > > It's a shortcut for error()/fatal() + die using the same error message. > > It saves a couple of lines in the simplest case, and even more in the > more complex case (especially with errorf()/fatalf()). > > Or maybe the log methods could return the generated string? That would > be a more generic solution as we can do anything about it. (Btw, posted > as another issue).