|
Please how to set-up JDK logging? According to http://www.mybatis.org/core/logging.html
I forced MyBatis to use JDK with: org.apache.ibatis.logging.LogFactory.useJdkLogging(); But still nothing is reported nowhere (although MyBatis throws an exception)... |
|
Slf4j and logback work fine in reporting mybatis logs.
--- Original Message --- From: "Libor Jelínek" <[hidden email]> Sent: February 23, 2012 2/23/12 To: [hidden email] Subject: How to set up JDK logging? Please how to set-up JDK logging? According to http://www.mybatis.org/core/logging.html I forced MyBatis to use JDK with: org.apache.ibatis.logging.LogFactory.useJdkLogging(); But still nothing is reported nowhere (although MyBatis throws an exception)... |
|
In reply to this post by Libor Jelínek
What exception?
On 23 feb, 17:38, Libor Jelínek <[hidden email]> wrote: > Please how to set-up JDK logging? According tohttp://www.mybatis.org/core/logging.html > I forced MyBatis to use JDK with: > > org.apache.ibatis.logging.LogFactory.useJdkLogging(); > > But still nothing is reported nowhere (although MyBatis throws an > exception)... |
|
In reply to this post by Jeremy Landis
I can't use either of them. I'm required to use JDK logging. Do you have any advices or suggestments, please?
2012/2/23 Jeremy Landis <[hidden email]> Slf4j and logback work fine in reporting mybatis logs. |
|
On Thu, Feb 23, 2012 at 1:47 PM, Libor Jelinek <[hidden email]> wrote:
> I can't use either of them. I'm required to use JDK logging. Do you have any > advices or suggestments, please? Since quitting is probably not the best advice (but it would be at the top of my list if I was told "You must use JDK logging."), how about you give us a stack trace. Larry |
|
In reply to this post by Libor Jelínek
You need to configure JDK logging through it's weird and strangely
difficult process. See here for some introduction (but a warning - this is one of the least helpful pages anywhere): http://docs.oracle.com/javase/6/docs/technotes/guides/logging/overview.html You can also see the following page for an example of how to configure JDK logging for the generator. DO NOT simply follow this by rote - use it as a guide. http://www.mybatis.org/generator/reference/logging.html Quitting is also a viable option as Larry said :) JDK logging is terrible. Jeff Butler On Thu, Feb 23, 2012 at 3:47 PM, Libor Jelinek <[hidden email]> wrote: > I can't use either of them. I'm required to use JDK logging. Do you have any > advices or suggestments, please? > > > > 2012/2/23 Jeremy Landis <[hidden email]> >> >> Slf4j and logback work fine in reporting mybatis logs. >> >> --- Original Message --- >> >> From: "Libor Jelínek" <[hidden email]> >> Sent: February 23, 2012 2/23/12 >> To: [hidden email] >> Subject: How to set up JDK logging? >> >> Please how to set-up JDK logging? According to >> http://www.mybatis.org/core/logging.html >> I forced MyBatis to use JDK with: >> >> org.apache.ibatis.logging.LogFactory.useJdkLogging(); >> >> But still nothing is reported nowhere (although MyBatis throws an >> exception)... >> >> > |
| Powered by Nabble | Edit this page |
