Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re-initialize Log4perl missing?

by Solo (Deacon)
on Jul 25, 2005 at 20:07 UTC ( [id://477953]=perlquestion: print w/replies, xml ) Need Help??

Solo has asked for the wisdom of the Perl Monks concerning the following question:

I'm writing a daemon that will handle reconfig on SIG_HUP. I want to use Log::Log4perl for logging. My problem is, there seems to be no public method for reinitializing Log4perl.

The module provides it's own method for re-init on signal or a changed file in init_and_watch(...), but seemingly no way to re-init from the calling program. SIG_HUP handlers would clobber each other, and the watch-file method incurs high overhead.

Have I missed the "public" way to reinitialize Log4perl, or is this a (missing?) feature?

*sigh* The init method works perfectly for this. Stupid user error.

--Solo

--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://477953]
Approved by ysth
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-26 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found