View RSS Feed

Recent Blogs Posts

  1. Log4J Message Priorities/Levels

    by , 02-24-2012 at 08:26 PM
    Levels and priorities for the messages are supported by logging. Content severity shall be made sure. Use these guidelines to describe the messages severity.

    • fatal Severe kind of errors which would result into premature termination. Expect them to be visible instantly at the status console. Internationalization shall also be seen.
    • error - Other unexpected conditions or runtime errors. Expect them to be visible immediately at the status console.
    • warn - Depreciated APIs usage,
  2. Hibernate logging

    by , 05-21-2011 at 11:36 PM (My Java Tips)
    Hibernate logs various events using Apache commons-logging. Hibernate logs are very interesting to read if you want to do some troubleshooting or performance improvement. Hibernate uses commons-logging service for logging. It actually sends the log to either Log4j or to JDK1.4 logging.

    If you want hibernate to log using Log4j, then put log4j.jar into class path along with Since log4j has almost become a standard these days, I would advice using that.
    Hibernate ...
    Tags: hql, jdbc, log4j, logging, sql Add / Edit Tags