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: 56597
Status: rejected
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: Return the generated log message?
How about the log methods returning the generated string? That would enable us to write, among others: die $log->fatalf("blah %s", $blah);
That would be convenient. However, it's important that the default case (no adapter chosen - the null adapter) be a no-op and have no performance cost, so that module authors are comfortable using logging statements liberally. In this case to be consistent the null adapter would still have to format the message and return it. On Wed Apr 14 14:57:33 2010, SHARYANTO wrote: Show quoted text
> How about the log methods returning the generated string? That would > enable us to write, among others: > > die $log->fatalf("blah %s", $blah); >