Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created
Yes Scott Selvia Manger of Product Development (O) 813.960.7800 x102 (F) 813.960.7811 http://www.datamentors.com This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify DataMentors, LLC immediately by replying to this message and destroy all copies of this message and any attachments. -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Ceki Gulcu Sent: Tuesday, September 15, 2009 5:27 PM To: User list for the slf4j project Subject: Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created When you say Rampart, do you mean http://ws.apache.org/rampart/ ? And where can I find rampart 1.5 RC1 ? Scott Selvia wrote: I don't know but I would assume that it must be using some form of logging, the following jars were in the rampart 1.5 RC1 zip file: slf4j-api-1.5.2.jar slf4j-jdk14-1.5.2.jar Also, I see log messages that are not coming from my code that show timestamp and encryption id's. But the properties files set as they are would the slf4j-jdk14-1.5.2.jar even be used? Scott Selvia Manger of Product Development (O) 813.960.7800 x102 (F) 813.960.7811 http://www.datamentors.com This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify DataMentors, LLC immediately by replying to this message and destroy all copies of this message and any attachments. -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Ceki Gulcu Sent: Tuesday, September 15, 2009 5:12 PM To: User list for the slf4j project Subject: Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created Does rampart use SLF4J? If so, is this documented somewhere? Scott Selvia wrote: Sorry for the incomplete text: I renamed the existing slf4j 1.52.jar's to .org, that were part of the rampart 1.5 lib folder. I then copied the latest slf4j slf4j-api-1.5.8.jar and slf4j-log4j12-1.5.8.jar into the apache-tomcat-6.0.20\webapps\axis2\WEB-INF\lib folder. With the commons-logging.properties entry and the log4j.properties files I thought that log4j was being used as the logging framework. If I reset to my original slf4j 1.52 original rampart jars and put my code back to calling the Log4j logger package the log file get written even with the commons-logging.properties and log4j.properties as shown below. Scott Selvia Manger of Product Development (O) 813.960.7800 x102 (F) 813.960.7811 http://www.datamentors.com This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify DataMentors, LLC immediately by replying to this message and destroy all copies of this message and any attachments. -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Ceki Gulcu Sent: Tuesday, September 15, 2009 4:14 PM To: User list for the slf4j project Subject: Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created Hello Scott, From what you write, it looks like you are using the JDK binding (slf4j-jdk14.jar) instead of log4j (slf4j-log4j12.jar). See also http://slf4j.org/manual.html Scott Selvia wrote: 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. 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. Inside the apache-tomcat-6.0.20\webapps\axis2\WEB-INF\classes folder the commons-logging.properties has the following: # Uncomment the next line to disable all logging. #org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog # Uncomment the next line to enable the simple log based logging #org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog # Uncomment the next line to enable log4j based logging org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger Also, the log4j.properties has: # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=INFO, CONSOLE #log4j.rootCategory=INFO, CONSOLE, LOGFILE log4j.category.com.myservice=TRACE, MyWebService # Set the enterprise logger priority to FATAL log4j.logger.org.apache.axis2.enterprise=FATAL log4j.logger.de.hunsicker.jalopy.io=FATAL log4j.logger.httpclient.wire.header=FATAL log4j.logger.org.apache.commons.httpclient=FATAL # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created
Here is the link for the 1.5 RC1 download: http://people.apache.org/~nandana/rampart-1.5/RC1/dist/ Scott Selvia Manger of Product Development (O) 813.960.7800 x102 (F) 813.960.7811 http://www.datamentors.com This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify DataMentors, LLC immediately by replying to this message and destroy all copies of this message and any attachments. -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Scott Selvia Sent: Wednesday, September 16, 2009 8:03 AM To: User list for the slf4j project Subject: Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created Yes Scott Selvia Manger of Product Development (O) 813.960.7800 x102 (F) 813.960.7811 http://www.datamentors.com This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify DataMentors, LLC immediately by replying to this message and destroy all copies of this message and any attachments. -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Ceki Gulcu Sent: Tuesday, September 15, 2009 5:27 PM To: User list for the slf4j project Subject: Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created When you say Rampart, do you mean http://ws.apache.org/rampart/ ? And where can I find rampart 1.5 RC1 ? Scott Selvia wrote: I don't know but I would assume that it must be using some form of logging, the following jars were in the rampart 1.5 RC1 zip file: slf4j-api-1.5.2.jar slf4j-jdk14-1.5.2.jar Also, I see log messages that are not coming from my code that show timestamp and encryption id's. But the properties files set as they are would the slf4j-jdk14-1.5.2.jar even be used? Scott Selvia Manger of Product Development (O) 813.960.7800 x102 (F) 813.960.7811 http://www.datamentors.com This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify DataMentors, LLC immediately by replying to this message and destroy all copies of this message and any attachments. -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Ceki Gulcu Sent: Tuesday, September 15, 2009 5:12 PM To: User list for the slf4j project Subject: Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created Does rampart use SLF4J? If so, is this documented somewhere? Scott Selvia wrote: Sorry for the incomplete text: I renamed the existing slf4j 1.52.jar's to .org, that were part of the rampart 1.5 lib folder. I then copied the latest slf4j slf4j-api-1.5.8.jar and slf4j-log4j12-1.5.8.jar into the apache-tomcat-6.0.20\webapps\axis2\WEB-INF\lib folder. With the commons-logging.properties entry and the log4j.properties files I thought that log4j was being used as the logging framework. If I reset to my original slf4j 1.52 original rampart jars and put my code back to calling the Log4j logger package the log file get written even with the commons-logging.properties and log4j.properties as shown below. Scott Selvia Manger of Product Development (O) 813.960.7800 x102 (F) 813.960.7811 http://www.datamentors.com This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify DataMentors, LLC immediately by replying to this message and destroy all copies of this message and any attachments. -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Ceki Gulcu Sent: Tuesday, September 15, 2009 4:14 PM To: User list for the slf4j project Subject: Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created Hello Scott, From what you write, it looks like you are using the JDK binding (slf4j-jdk14.jar) instead of log4j (slf4j-log4j12.jar). See also http://slf4j.org/manual.html Scott Selvia wrote: 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. 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. Inside the apache-tomcat-6.0.20\webapps\axis2\WEB-INF\classes folder the commons-logging.properties has the following: # Uncomment the next line to disable all logging. #org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog # Uncomment the next line to enable the simple log based logging
Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created
Hello Scott, From what you write, it looks like you are using the JDK binding (slf4j-jdk14.jar) instead of log4j (slf4j-log4j12.jar). See also http://slf4j.org/manual.html Scott Selvia wrote: 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. 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. Inside the apache-tomcat-6.0.20\webapps\axis2\WEB-INF\classes folder the commons-logging.properties has the following: # Uncomment the next line to disable all logging. #org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog # Uncomment the next line to enable the simple log based logging #org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog # Uncomment the next line to enable log4j based logging org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger Also, the log4j.properties has: # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=INFO, CONSOLE #log4j.rootCategory=INFO, CONSOLE, LOGFILE log4j.category.com.myservice=TRACE, MyWebService # Set the enterprise logger priority to FATAL log4j.logger.org.apache.axis2.enterprise=FATAL log4j.logger.de.hunsicker.jalopy.io=FATAL log4j.logger.httpclient.wire.header=FATAL log4j.logger.org.apache.commons.httpclient=FATAL # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n # LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender log4j.appender.LOGFILE.File=axis2.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n # My Web Service Appender log4j.appender.MyWebService=org.apache.log4j.RollingFileAppender log4j.appender.file.maxFileSize=100KB log4j.appender.file.maxBackupIndex=5 log4j.appender.MyWebService.File=../../logs/MyWebService.log log4j.appender.MyWebService.layout=org.apache.log4j.PatternLayout log4j.appender.MyWebService.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n Does SLF4J ignore the logging properties file? How do I get a log file written to disk with SLF4J? -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch ___ user mailing list user@slf4j.org http://www.slf4j.org/mailman/listinfo/user
Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created
Does rampart use SLF4J? If so, is this documented somewhere? Scott Selvia wrote: Sorry for the incomplete text: I renamed the existing slf4j 1.52.jar's to .org, that were part of the rampart 1.5 lib folder. I then copied the latest slf4j slf4j-api-1.5.8.jar and slf4j-log4j12-1.5.8.jar into the apache-tomcat-6.0.20\webapps\axis2\WEB-INF\lib folder. With the commons-logging.properties entry and the log4j.properties files I thought that log4j was being used as the logging framework. If I reset to my original slf4j 1.52 original rampart jars and put my code back to calling the Log4j logger package the log file get written even with the commons-logging.properties and log4j.properties as shown below. Scott Selvia Manger of Product Development (O) 813.960.7800 x102 (F) 813.960.7811 http://www.datamentors.com This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify DataMentors, LLC immediately by replying to this message and destroy all copies of this message and any attachments. -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Ceki Gulcu Sent: Tuesday, September 15, 2009 4:14 PM To: User list for the slf4j project Subject: Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created Hello Scott, From what you write, it looks like you are using the JDK binding (slf4j-jdk14.jar) instead of log4j (slf4j-log4j12.jar). See also http://slf4j.org/manual.html Scott Selvia wrote: 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. 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. Inside the apache-tomcat-6.0.20\webapps\axis2\WEB-INF\classes folder the commons-logging.properties has the following: # Uncomment the next line to disable all logging. #org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog # Uncomment the next line to enable the simple log based logging #org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog # Uncomment the next line to enable log4j based logging org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger Also, the log4j.properties has: # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=INFO, CONSOLE #log4j.rootCategory=INFO, CONSOLE, LOGFILE log4j.category.com.myservice=TRACE, MyWebService # Set the enterprise logger priority to FATAL log4j.logger.org.apache.axis2.enterprise=FATAL log4j.logger.de.hunsicker.jalopy.io=FATAL log4j.logger.httpclient.wire.header=FATAL log4j.logger.org.apache.commons.httpclient=FATAL # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n # LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender log4j.appender.LOGFILE.File=axis2.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n # My Web Service Appender log4j.appender.MyWebService=org.apache.log4j.RollingFileAppender log4j.appender.file.maxFileSize=100KB log4j.appender.file.maxBackupIndex=5 log4j.appender.MyWebService.File=../../logs/MyWebService.log log4j.appender.MyWebService.layout=org.apache.log4j.PatternLayout log4j.appender.MyWebService.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n Does SLF4J ignore the logging properties file? How do I get a log file written to disk with SLF4J? -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch ___ user mailing list user@slf4j.org http://www.slf4j.org/mailman/listinfo/user
Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created
When you say Rampart, do you mean http://ws.apache.org/rampart/ ? And where can I find rampart 1.5 RC1 ? Scott Selvia wrote: I don't know but I would assume that it must be using some form of logging, the following jars were in the rampart 1.5 RC1 zip file: slf4j-api-1.5.2.jar slf4j-jdk14-1.5.2.jar Also, I see log messages that are not coming from my code that show timestamp and encryption id's. But the properties files set as they are would the slf4j-jdk14-1.5.2.jar even be used? Scott Selvia Manger of Product Development (O) 813.960.7800 x102 (F) 813.960.7811 http://www.datamentors.com This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify DataMentors, LLC immediately by replying to this message and destroy all copies of this message and any attachments. -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Ceki Gulcu Sent: Tuesday, September 15, 2009 5:12 PM To: User list for the slf4j project Subject: Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created Does rampart use SLF4J? If so, is this documented somewhere? Scott Selvia wrote: Sorry for the incomplete text: I renamed the existing slf4j 1.52.jar's to .org, that were part of the rampart 1.5 lib folder. I then copied the latest slf4j slf4j-api-1.5.8.jar and slf4j-log4j12-1.5.8.jar into the apache-tomcat-6.0.20\webapps\axis2\WEB-INF\lib folder. With the commons-logging.properties entry and the log4j.properties files I thought that log4j was being used as the logging framework. If I reset to my original slf4j 1.52 original rampart jars and put my code back to calling the Log4j logger package the log file get written even with the commons-logging.properties and log4j.properties as shown below. Scott Selvia Manger of Product Development (O) 813.960.7800 x102 (F) 813.960.7811 http://www.datamentors.com This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify DataMentors, LLC immediately by replying to this message and destroy all copies of this message and any attachments. -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Ceki Gulcu Sent: Tuesday, September 15, 2009 4:14 PM To: User list for the slf4j project Subject: Re: [slf4j-user] SLF4J w/Log4J and Axis2 - No Log File is created Hello Scott, From what you write, it looks like you are using the JDK binding (slf4j-jdk14.jar) instead of log4j (slf4j-log4j12.jar). See also http://slf4j.org/manual.html Scott Selvia wrote: 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. 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. Inside the apache-tomcat-6.0.20\webapps\axis2\WEB-INF\classes folder the commons-logging.properties has the following: # Uncomment the next line to disable all logging. #org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog # Uncomment the next line to enable the simple log based logging #org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog # Uncomment the next line to enable log4j based logging org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger Also, the log4j.properties has: # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=INFO, CONSOLE #log4j.rootCategory=INFO, CONSOLE, LOGFILE log4j.category.com.myservice=TRACE, MyWebService # Set the enterprise logger priority to FATAL log4j.logger.org.apache.axis2.enterprise=FATAL log4j.logger.de.hunsicker.jalopy.io=FATAL log4j.logger.httpclient.wire.header=FATAL log4j.logger.org.apache.commons.httpclient=FATAL # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n # LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender log4j.appender.LOGFILE.File=axis2.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n # My Web Service Appender log4j.appender.MyWebService=org.apache.log4j.RollingFileAppender log4j.appender.file.maxFileSize=100KB log4j.appender.file.maxBackupIndex=5 log4j.appender.MyWebService.File=../../logs/MyWebService.log log4j.appender.MyWebService.layout=org.apache.log4j.PatternLayout