This statement probably produces a run-time warning. Perl tries to form the file name by concatening the contents of the scalar variable $config (which does not exist) with the special variable $\ and then with '/testRotate.conf'

I am not sure what you intend. You must fix the quotes and escapes to specify what you really mean. Good Luck, Bill

Re: [BillKSmith] log4perl seems not to work as advertised
[In reply to]

Can't Post

$config actually exists and is correct

my $config = $ENV{'CONFIGPATH'};

the string

$\/testRotate\.conf

is obviously a mistake (I left a code from previous attempt to resolve the issue) so the correct line is:Log::Log4perl::init( "$config\/testRotate\.conf" );

which corretly points to the configuration file above.

BTW, I tried with and without the 'easy' option, with and without the 'INFO' instead of $logger->info, etc. None changed the behavior of ignoring the 'size' and 'max' attributes in the configuration file.

Sorry, I cannot help with the module. The filename looked wrong so I wrote a tiny script to confirm its behavior. ($config did not exist in my script and I forgot to check in the original). Good Luck, Bill