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.