On Thu, 19 Feb 2009 21:13 -0800, "Mike Schilli"
wrote:
> Actually, just for the record, you can set an appender's layout:
>
> $appender->layout($layout); # perldoc Log::Log4perl::Appender
I tried the following code:
$nl =
Log::Log4perl::Appender::File->new(
filename
> What you think is a 'logger' is really an appender in Log4perl lingo. An
> appender has no concept of a level like 'debug', only loggers do.
I see, and that's why it also can't understand about layouts.
> The reason why you get the error message 'on an undefined value' is an
> internal autoload
On Fri, 20 Feb 2009, Ronald Fischer wrote:
> I tried the following code:
>$nl =
> Log::Log4perl::Appender::File->new(
>filename => $logname,
>mode => 'clobber',
>utf8 => 1,
>create_at_logtime => 1
> );
>$nl->layout(
Mike Schilli m-at-perlmeister.com |log4perl_sourceforge| wrote:
> Hmm, that's peculiar. I wonder what kind of config change would cause
> this. Are you removing an appender by any chance?
Nope, usually I'm only changing the log level.
But I can reproduce the error without changing anything in the