|
Project Information
Links
|
A simple tool to capture hql and sql for web flows. IntroductionQuick profiler works out of a spring file and a single jar file and uses log4j NDC for grouping queries (hqls and sqls for a flow). The jar file adds logging of more events to hibernate and ships with a custom layout to help visualizing the queries. The queries are presented in an xml format which can be viewed in any xml editor. We are also working on an Analyzer which could suggest hints. For sample output refer to Sample Output Steps to setup
Logging ConfigurationThe extra logging parameters can be:
This is our normal log4j configuration, except that the layout is a custom one. We also need to enable tracing, which can be done with NDC SectionOne of the features that log4j supports is NDC, it helps adding an context to the subsequent log messages for easier grouping. We can use the request URI as the NDC, the filter class LoggingFilter (java servlet spec Filter, not hibernate filters) can be one such filter which can add an context Based on this NDC we can control which flows to log details about and other such details. |