Re: [HA-JDBC] log4j.properties incantation to get rid of the org.jgroups.protocols.UDB WARN message
High-Availability JDBC
Brought to you by:
ferraro
From: Paul F. <pm...@co...> - 2006-05-19 19:22:54
|
David Goodenough wrote: > On Friday 19 May 2006 16:53, Paul Ferraro wrote: > >> Probably the most problematic aspect of customizing log4j is getting >> log4j to locate your log4j.properties file correctly. >> I find it easiest to define a log4j.configuration system property >> explicitly defining it's location. >> I also find the XML layout easier to deal with. Here's a example of one >> that I use on a production system: >> >> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" >> debug="false"> >> >> <appender name="file" class="org.apache.log4j.RollingFileAppender"> >> <param name="Threshold" value="INFO"/> >> <param name="File" value="/path/to/log/file"/> >> <param name="BufferedIO" value="false"/> >> <param name="MaxFileSize" value="10MB"/> >> <param name="MaxBackupIndex" value="10"/> >> >> <layout class="org.apache.log4j.PatternLayout"> >> <param name="ConversionPattern" >> value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %m%n"/> >> </layout> >> </appender> >> >> <appender name="email" class="org.apache.log4j.net.SMTPAppender"> >> <param name="Threshold" value="ERROR"/> >> <param name="SMTPHost" value="localhost"/> >> <param name="To" value="..."/> >> <param name="From" value="..."/> >> <param name="Subject" value="Exception!!!"/> >> <param name="BufferSize" value="1"/> >> >> <layout class="org.apache.log4j.PatternLayout"> >> <param name="ConversionPattern" >> value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %m%n"/> >> </layout> >> </appender> >> >> <logger name="org.jgroups"> >> <level value="ERROR"/> >> </logger> >> >> <root> >> <level value="INFO"/> >> <appender-ref ref="file"/> >> <appender-ref ref="email"/> >> </root> >> >> </log4j:configuration> >> >> Paul >> >> Kurt Huwig wrote: >> >>> David Goodenough schrieb: >>> >>>> I am trying to follow the suggestion in the FAQ (Q3.6) to get rid of the >>>> log4j warnings from jgroups. But I have always found log4j.properties >>>> to be in need of magic incantations, and I am never quite sure what I >>>> should put in them. >>>> >>>> Does anyone have a sample I could look at in order to get rid of those >>>> messages? >>>> >>> org.jgroups.level=SEVERE >>> >>> Simple enought? >>> -- >>> Mit freundlichen Grüßen >>> >>> Kurt Huwig iKu Systemhaus AG http://www.iku-ag.de/ >>> Vorstand Am Römerkastell 4 Telefon 0681/96751-0 >>> 66121 Saarbrücken Telefax 0681/96751-66 >>> GnuPG 1024D/99DD9468 64B1 0C5B 82BC E16E 8940 EB6D 4C32 F908 99DD 9468 >>> > Does is matter which of the slf4j jars I am using. I am using the -simple > jar and it does not seem to recognise log4j.properties. I can not seem to > get contact with slf4j.org web site. > Yes - it does. You should use the slf4j-log4j.jar. Here's a link to google's cached copy of the slf4j user manual: http://66.102.7.104/search?q=cache:vwN476_BfsEJ:www.slf4j.org/manual.html+slf4j&hl=en&gl=ca&ct=clnk&cd=2&client=firefox > David > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 > _______________________________________________ > ha-jdbc-user mailing list > ha-...@li... > https://lists.sourceforge.net/lists/listinfo/ha-jdbc-user > |