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
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.