Skip Menu |

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

Report information
The Basics
Id: 32431
Status: new
Priority: 0/
Queue: Log-StdLog

People
Owner: Nobody in particular
Requestors: robin-bitcard [...] robinbowes.com
Cc:
AdminCc:

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



Subject: Change min severity level during program execution
Would it be possible to change the min severity level dynamically, i.e. after the module has loaded? Here's the use case I have: I'm using Log::StdLog in one of my modules to produce all error/warning/info msgs. What I'd like to be able to do is to sprinkle log statements throughout my code, with most of them at severity level debug or trace. So, when the module is used normally only fatal/error level msgs will be displayed. Then, be able to write a test script that calls something like Log::StdLog::set_min_severity_level('debug') so the debug msgs are displayed. Is this possible? Thanks, R.