logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lowell Kirsh" <lowe...@gmail.com>
Subject Re: How do I keep loggers from loging to stdout
Date Wed, 05 Sep 2007 00:54:31 GMT
You could try adding log4j.additivity.java.sql=false.

Please let us know if that works.

Lowell

On 9/4/07, Warren <warren@clarksnutrition.com> wrote:
> I am trying to keep my SQL logger from logging to the stdout in Tomcat.
> I still want Tomcat logging to go to stdout. How do I do this? Here is
> my property file:
>
> # Console output...
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
> log4j.rootLogger=ERROR, stdout
>
> log4j.logger.java.sql=ERROR, SQL
> log4j.appender.SQL=org.apache.log4j.RollingFileAppender
> log4j.appender.SQL.File=C:\\Program Files\\Apache Software
> Foundation\\Tomcat 5.5\\logs\\clarksauto_logs\\sql.log
> log4j.appender.SQL.MaxFileSize=10000KB
> log4j.appender.SQL.MaxBackupIndex=10
> log4j.appender.SQL.layout=org.apache.log4j.PatternLayout
> log4j.appender.SQL.layout.ConversionPattern=[%-5p] %d{MMM dd yyyy
> HH:mm:ss,SSS} %-15.15C{1} %-35.35M Line:%-5L - %m%n
>
>
>
> --
> Thanks,
>
> Warren Bell
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message