Hi What is the effect of removing commons-logging from classpath?
On 8/24/07, Jeff Butler <[EMAIL PROTECTED]> wrote: > > You need to configure JCL. This could be as simple as following the > instructions found here: > > http://commons.apache.org/logging/ > > Or, depending on your operating environment, you may need to do some other > work. For example, WebSphere supplies it's own implementation of JCL that > must be configured from the administrative console. > > Jeff Butler > > > On 8/24/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > > > > Hi > > I am using ibatis 2.1.5 , and setting log file is only for 2.2 and > > above. > > so i cannot use it, but there are no ibatis debug logs, but logs > > from JakartaCommonsLoggingImpl > > Is there some thing i need to add to log file to contral logging by this > > class > > > > > > Ashish > > > > On 8/23/07, Jeff Butler <[EMAIL PROTECTED] > wrote: > > > > > > Jakarta Commons Logging (JCL) must be in your classpath somewhere. By > > > default, iBATIS will use JCL if it finds it. > > > > > > If you want to force Log4j, then you'll need to tell iBATIS to use > > > Log4j even if it finds JCL. > > > > > > This is documented on page 62 of the developer's guide. > > > > > > Jeff Butler > > > > > > > > > On 8/23/07, Ashish Kulkarni <[EMAIL PROTECTED] > wrote: > > > > > > > > Hi > > > > I am using log4j for logging and added the following XML elements in > > > > my configuration file, but i still get the log file as below, how do i > > > > supress these logs from coming in stdout file > > > > > > > > 2007-08-23 16:50:12,935 DEBUG [http-4080-Processor25] > > > > jakarta.JakartaCommonsLoggingImpl (JakartaCommonsLoggingImpl.java:23) > > > > - {conn-100000} Connection > > > > 2007-08-23 16:50:13,095 DEBUG [http-4080-Processor25] > > > > jakarta.JakartaCommonsLoggingImpl (JakartaCommonsLoggingImpl.java:23) > > > > - {pstm-100001} PreparedStatement: > > > > 2007-08-23 16:50:13,095 DEBUG [http-4080-Processor25] > > > > jakarta.JakartaCommonsLoggingImpl (JakartaCommonsLoggingImpl.java:23) > > > > - {pstm-100001} Parameters: [ASHXXX] > > > > 2007-08-23 16:50:13,095 DEBUG [http-4080-Processor25] > > > > jakarta.JakartaCommonsLoggingImpl (JakartaCommonsLoggingImpl.java:23) > > > > - {pstm-100001} Types: [java.lang.String] > > > > 2007-08-23 16:50:13,255 DEBUG [http-4080-Processor25] > > > > jakarta.JakartaCommonsLoggingImpl (JakartaCommonsLoggingImpl.java:23) - > > > > {rset-100002} ResultSet > > > > > > > > > > > > <category name="log4j.logger.com.ibatis"> > > > > <priority value="warn"></priority> > > > > <appender-ref ref="A1" /> > > > > </category> > > > > <category name="log4j.logger.java.sql"> > > > > <priority value="warn"></priority> > > > > <appender-ref ref="A1" /> > > > > </category> > > > > > > > > > > > > > >
