On Wed, 11 Jan 2012, Mark Horstmeier wrote:

> in my apache conf file, but I am still getting the warnings from
> Log4perl::Appender sent to my Apache error log.

If you're talking about Log4perl warnings, 
I suppose that's a Screen appender, and you've configured Log4perl to
log messages of level WARN. This is unrelated to Perl's warnings, it's
a Log4perl configuration issue -- lower the level in the config file and
the warnings will be suppressed. If you post your Log4perl
configuration, I can help you with that.

> I can eliminate the error by commenting the use warnings out of the
> Appender.pm file, but I am loathe to push a modified module to our
> production
> Is there a config that I can use to turn warnings off? There is a fix for
> the Wide character in print warning, but that is more about enabling UTF8
> than disabling warnings.

Oh, I see, you're talking about Log4perl's Screen appender issuing a
Perl warning about wide characters? That's caused by log functions
writing messages including utf8 characters and if the appender isn't
configured to log in utf8, Perl issues a warning. To fix this, use

     log4perl.appender.ScreenAppenderName.utf8 = 1

-- 
-- Mike

Mike Schilli
m...@perlmeister.com

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to