I humbly ask the great monks for help with a perl problem that is driving me crazy. I am writting a program on windows and I need a logging facility. I decided to use log::log4perl, wich I have used in the pass on *nx systems and it works wonderful.
But for some reason, I cannot get it do nothing on windows. I am using an external config file (logger.conf) part of it is shown below (this is the INFO facility config but all others are in the same format:
and here is a snippet of code forcing an INFO message:log4perl.logger=INFO, INFOLOGFILE log4perl.appender.INFOLOGFILE=Log::Log4perl::Appender::File log4perl.appender.INFOLOGFILE.filename=x:\\Code\\jas\\logger\\addenabl +e\info.log log4perl.appender.INFOLOGFILE.mode=append log4perl.appender.INFOLOGFILE.layout=PatternLayout log4perl.appender.INFOLOGFILE.layout.ConversionPattern=[%r]%F %L %c - +%m%n
Am I just not seeing something? Any advice or suggestions would be greatly appreciated. ~crypixuse Log::Log4perl qw(get_logger); Log::Log4perl->init('logger.conf'); $exitcode = 1; my $logger = get_logger(); if ($exitcode == 1){ $logger->info("Something went right"); }
In reply to log::log4perl on win32 not logging by crypix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |