Tag Archives: logs

Logs on X background

Do you want to easily control different events that may occure in your system? Are you boring of looking into log files (or do you reviewing them regularly?). Here's simple method how to not miss any interesting event! Place logs … Continue reading

Posted in en | Tagged , | Comments Off on Logs on X background

Commons logging configuration under WebSphere

Sometimes you want to customize logging level for given package in your application (to see tracing details for example). If you're using commons-logging library the configuration file is called "commons-logging.properties" and it should be places somewhere on classpath. org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog priority=1 … Continue reading

Posted in en | Tagged , | Comments Off on Commons logging configuration under WebSphere

Watch your HTTPD logs

Recently I observed that AdWords-generated traffic dissapeared from Analytics panel. I thought: WTH? I checked the logs and saw that URL called by AdWords: http://my-site.com/?gclid=342343445345…. Generated 403 (Forbidden) server response. That was caused by recent change in Lighttpd filtering rules. … Continue reading

Posted in en | Tagged , , | Comments Off on Watch your HTTPD logs

commons-logging.jar considered harmfull?

During recent 2nd level cache implementation research I noticed EHCache has a very funny dependency: slf4j. Hey, WTH, yet another log library implementation? – I asked myself. No commons-logging as everywhere? I googled around and found "The evils of commons-logging.jar … Continue reading

Posted in en | Tagged , | Comments Off on commons-logging.jar considered harmfull?

How To Debug Hibernate SQL Queries With Parameters

I bet everyone knows how to enable SQL logging for Hibernate. If you add this parametr to Hibernate configuration: <property name="hibernate.show_sql">true</property> you will see queries like this in log file: select roles0_.EntityKey as Entity9_1_, roles0_.ENTITYKEY as ENTITY9_168_0_ from USERROLE roles0_ … Continue reading

Posted in en | Tagged , , , | 5 Comments