This gives me the following output:
---
Use of uninitialized value in hash element at C:/Programme/Perl/site/lib/Log/Log4perl/Config.pm line 452.
Use of uninitialized value in numeric gt (>) at C:/Programme/Perl/site/lib/Log/Log4perl/Config.pm line 452.
FATAL - Fatal
ERROR - Error
WARN - Warning
---
Where do the warnings come from? I'm cannot figure out why this is happening....
Any help welcome!
Thanks in advance
Johannes
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've got the following problem (ActiveStatePerl 5.8.8, Log::Log4perl 1.24)
* Running the following simple program:
---
use strict;
use warnings;
use Log::Log4perl;
Log::Log4perl::init('logtest_l4pconfig.xml');
my $logger = Log::Log4perl->get_logger();
$logger->fatal("Fatal");
$logger->error("Error");
$logger->warn("Warning");
$logger->info("Info");
$logger->debug("Debug");
----
with the following configuration:
---
<?xml version="1.0" encoding="utf-8"?>
<log4perl:configuration xmlns:log4perl="http://log4perl.sourceforge.net/" threshold="debug" oneMessagePerAppender="true">
<appender name="AppGeneralScreen" class="Log::Log4perl::Appender::Screen">
<filter-ref id="FilterRange" />
<layout class="Log::Log4perl::Layout::SimpleLayout"/>
</appender>
<filter name="FilterRange" class="Log::Log4perl::Filter::LevelRange">
<param name="LevelMin" value="INFO" />
<param name="LevelMax" value="FATAL" />
<param name="AcceptOnMatch" value="true" />
</filter>
<root>
<priority value="WARN" />
<appender-ref ref="AppGeneralScreen" />
</root>
</log4perl:configuration>
---
This gives me the following output:
---
Use of uninitialized value in hash element at C:/Programme/Perl/site/lib/Log/Log4perl/Config.pm line 452.
Use of uninitialized value in numeric gt (>) at C:/Programme/Perl/site/lib/Log/Log4perl/Config.pm line 452.
FATAL - Fatal
ERROR - Error
WARN - Warning
---
Where do the warnings come from? I'm cannot figure out why this is happening....
Any help welcome!
Thanks in advance
Johannes
That was a bug, fixed on github and will be released with 1.25:
http://github.com/mschilli/log4perl/commit/bd29eb9b7d700c1eaeef99be94c577082169c118
Thanks for reporting it!
-- Mike