in reply to log4perl: finding initialisation file
Code is untested and I've been forced to use ASP for the last month so it could be totally wrong. I'm sure there is a more elegant solution too.if (-e "./log.conf") { Log::Log4perl->init("./log.conf"); } elsif (-e "../log.conf") { Log::Log4perl->init("../log.conf"); } else { Log::Log4perl->init("/etc/log.conf"); }
|
|---|