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"); }
In reply to Re: log4perl: finding initialisation file
by xorl
in thread log4perl: finding initialisation file
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |