forget this thread. everything is ok. just not testing the right env.
Apologize On 5/22/06, lio tomcat <[EMAIL PROTECTED]> wrote:
Hello world, I'm a bit estonished by the BEHAVIOUR duo tomcat4.1/log4j-1.2.13; Even if my threshold is set to DEBUG, only WARN and ERROR levels appear in console. (Morever the log file is never created...) log4j-1.2.13.jar is in [tomcat]\webapps\myApp\WEB-INF\lib log4j.xml is in [tomcat]\webapps\WEB-INF\classes None of them shout for a configuration problem... Any clue? Please help... Here is some additionnal info : When it starts log4j does not insult me : log4j: Threshold ="null". log4j: Level value for root is [DEBUG]. log4j: root level set to DEBUG log4j: Class name: [org.apache.log4j.ConsoleAppender] log4j: Setting property [target] to [System.out]. log4j: Setting property [threshold] to [DEBUG]. log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" log4j: Setting property [conversionPattern] to [%d{dd/MM/yyyy HH:mm:ss,SSS} %-5p [ProxyMail %-4c{1}] - %m%n]. log4j: Adding appender named [console] to category [root]. log4j: Class name: [org.apache.log4j.RollingFileAppender] log4j: Setting property [threshold] to [DEBUG]. log4j: Setting property [file] to [C:\proxyMail.log]. log4j: Setting property [append] to [true]. log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" log4j: Setting property [conversionPattern] to [%d{dd/MM/yyyy HH:mm:ss,SSS} %-5p [ProxyMail %-4c{1}] - %m%n]. log4j: setFile called: C:\proxyMail.log, true log4j: setFile ended log4j: Adding appender named [proxyMailFile] to category [root]. log4j: Threshold ="null". log4j: Level value for root is [DEBUG]. log4j: root level set to DEBUG log4j: Class name: [org.apache.log4j.ConsoleAppender] log4j: Setting property [target] to [System.out]. log4j: Setting property [threshold] to [DEBUG]. log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" log4j: Setting property [conversionPattern] to [%d{dd/MM/yyyy HH:mm:ss,SSS} %-5p [ProxyMail %-4c{1}] - %m%n]. log4j: Adding appender named [console] to category [root]. log4j: Class name: [org.apache.log4j.RollingFileAppender] log4j: Setting property [threshold] to [DEBUG]. log4j: Setting property [file] to [C:\proxyMail.log]. log4j: Setting property [append] to [true]. log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" log4j: Setting property [conversionPattern] to [%d{dd/MM/yyyy HH:mm:ss,SSS} %-5p [ProxyMail %-4c{1}] - %m%n]. log4j: setFile called: C:\proxyMail.log, true log4j: setFile ended log4j: Adding appender named [proxyMailFile] to category [root]. log4j: Threshold ="null". log4j: Level value for root is [DEBUG]. log4j: root level set to DEBUG log4j: Class name: [org.apache.log4j.ConsoleAppender] log4j: Setting property [target] to [System.out]. log4j: Setting property [threshold] to [DEBUG]. log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" log4j: Setting property [conversionPattern] to [%d{dd/MM/yyyy HH:mm:ss,SSS} %-5p [ProxyMail %-4c{1}] - %m%n]. log4j: Adding appender named [console] to category [root]. log4j: Class name: [org.apache.log4j.RollingFileAppender] log4j: Setting property [threshold] to [DEBUG]. log4j: Setting property [file] to [C:\proxyMail.log]. log4j: Setting property [append] to [true]. log4j: Parsing layout of class: "org.apache.log4j.PatternLayout" log4j: Setting property [conversionPattern] to [%d{dd/MM/yyyy HH:mm:ss,SSS} %-5p [ProxyMail %-4c{1}] - %m%n]. log4j: setFile called: C:\proxyMail.log, true log4j: setFile ended Here is my log4j.xml : <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true"> <!-- ============================== --> <!-- Append messages to the console --> <!-- ============================== --> <appender name="console" class="org.apache.log4j.ConsoleAppender"> <param name="Target" value="System.out"/> <param name="Threshold" value="DEBUG"/> <layout class="org.apache.log4j.PatternLayout"> <!-- The default pattern: Date Priority [Category] Message\n --> <!-- <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>--> <param name="ConversionPattern" value="%d{dd/MM/yyyy HH:mm:ss,SSS} %-5p [ProxyMail %-4c{1}] - %m%n"/> </layout> </appender> <!-- =============================== --> <!-- Appende message to file --> <!-- =============================== --> <appender name="proxyMailFile" class="org.apache.log4j.RollingFileAppender"> <param name="Threshold" value="DEBUG"/> <param name="file" value="C:\\MyApp.log"/> <param name="Append" value="true"/> <!--<param name="DatePattern" value="'.'yyyy-MM-dd"/>--> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{dd/MM/yyyy HH:mm:ss,SSS} %-5p [ProxyMail %-4c{1}] - %m%n"/> </layout> </appender> <!-- ======================= --> <!-- Setup the Root category --> <!-- ======================= --> <root> <priority value="DEBUG"/> <appender-ref ref="console"/> <appender-ref ref="proxyMailFile"/> </root> </log4j:configuration>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]