<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>I have changed
my code from Log4J logging to SLF4J and I now my log files are no longer
written to disk for my web service, I can see all of the logging in the tomcat
console. &nbsp;I copied the following slf4j jars to my
apache-tomcat-6.0.20\webapps\axis2\WEB-INF\lib folder and I renamed the
existing slf4j-api-1.5.2.jar.org and slf4j-jdk14-1.5.2.jar.org. &nbsp;Inside
the apache-tomcat-6.0.20\webapps\axis2\WEB-INF\classes folder the
commons-logging.properties has the following: <br>
<br>
# Uncomment the next line to disable all logging. <br>
#org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog <br>
<br>
# Uncomment the next line to enable the simple log based logging <br>
#org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog <br>
<br>
# Uncomment the next line to enable log4j based logging <br>
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger <br>
<br>
Also, the log4j.properties has: <br>
<br>
# Set root category priority to INFO and its only appender to CONSOLE. <br>
log4j.rootCategory=INFO, CONSOLE <br>
#log4j.rootCategory=INFO, CONSOLE, LOGFILE <br>
log4j.category.com.myservice=TRACE, MyWebService <br>
<br>
# Set the enterprise logger priority to FATAL <br>
log4j.logger.org.apache.axis2.enterprise=FATAL <br>
log4j.logger.de.hunsicker.jalopy.io=FATAL <br>
log4j.logger.httpclient.wire.header=FATAL <br>
log4j.logger.org.apache.commons.httpclient=FATAL <br>
<br>
# CONSOLE is set to be a ConsoleAppender using a PatternLayout. <br>
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender <br>
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout <br>
log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n <br>
<br>
# LOGFILE is set to be a File appender using a PatternLayout. <br>
log4j.appender.LOGFILE=org.apache.log4j.FileAppender <br>
log4j.appender.LOGFILE.File=axis2.log <br>
log4j.appender.LOGFILE.Append=true <br>
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout <br>
log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n <br>
<br>
# My Web Service Appender <br>
<br>
log4j.appender.MyWebService=org.apache.log4j.RollingFileAppender <br>
log4j.appender.file.maxFileSize=100KB <br>
log4j.appender.file.maxBackupIndex=5 <br>
log4j.appender.MyWebService.File=../../logs/MyWebService.log <br>
log4j.appender.MyWebService.layout=org.apache.log4j.PatternLayout <br>
log4j.appender.MyWebService.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n <br>
<br>
Does SLF4J ignore the logging properties file? &nbsp;How do I get a log file
written to disk with SLF4J?</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>