Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Accessing Log::Log4perl Configuration Values

by saintmike (Vicar)
on Mar 21, 2007 at 06:22 UTC ( #605789=note: print w/ replies, xml ) Need Help??


in reply to Accessing Log::Log4perl Configuration Values

Actually, Log::Log4perl already offers access to certain parts of the configuration: You can find appenders by name via Log::Log4perl->appender_by_name, for example. Make sure to read the explanation in the manual for this.

If you're just after the name of a file used by a file appender, that'd be the route I'd recommend for you to use. If you're after a custom appender, there's an FAQ for that.

If you need anything else, just let me know what it is you're after, and if it's of general interest, I can put it into Log::Log4perl for you.


Comment on Re: Accessing Log::Log4perl Configuration Values

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://605789]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-12-22 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (113 votes), past polls