Quantcast

Log4j2 issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Log4j2 issue

Stephen Morris
Hello
I'm trying to configure Log4j2 logging with MyBatis in a WebLogic app. The log4j2.xml file in this app is NOT on the class path. Is there any way to enable MyBatis logging in this case, e.g., programmatically?

Thanks in advance.
Stephen

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Log4j2 issue

vian_qu
Hii Stephen Morris,

the log4j should be not problem, i put log4j.properties file in the class path and mybatis log should be shown. also do not forget to put in the line tell the log4j to scan mybatis classes, use this script : log4j.logger.com.ibatis.common.jdbc.ScriptRunner=INFO 
also you can add more level not just INFO, like DEBUG, or ERROR

Thankyou

Pada Minggu, 30 Oktober 2016 01.14.45 UTC+7, Stephen Morris menulis:
Hello
I'm trying to configure Log4j2 logging with MyBatis in a WebLogic app. The log4j2.xml file in this app is NOT on the class path. Is there any way to enable MyBatis logging in this case, e.g., programmatically?

Thanks in advance.
Stephen

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Log4j2 issue

Iwao AVE!
In reply to this post by Stephen Morris
Log4j2 allows you to specify the config file location via a system property.


2016-10-30 3:13 GMT+09:00 Stephen Morris <[hidden email]>:
Hello
I'm trying to configure Log4j2 logging with MyBatis in a WebLogic app. The log4j2.xml file in this app is NOT on the class path. Is there any way to enable MyBatis logging in this case, e.g., programmatically?

Thanks in advance.
Stephen

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...