Posts Tagged Log

Logging each & every request at JBoss Server level

January 7, 2012
Logging each & every request at JBoss Server level

  You can get this by uncommenting & replacing the following valve tag inside server.xml of JBOSS located at $JBOSS_HOME/default/deploy/jbossweb-tomcat50.sar/ (path depends on JBoss version) <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="localhost_access_log." suffix=".log" pattern="(%h) %t: %r; Time taken to process the request, in millis – %D; Bytes sent, excluding HTTP headers, or ‘-’ if zero – %b;" directory="${jboss.server.home.dir}/log" resolveHosts="false" [...]

Enable log for queries on MySQL

December 23, 2011
Enable log for queries on MySQL

Generally we will get some situations where we need to see the each and every query hitting the MySQL server, especially while debugging. Viewing each & every query hitting any MySQl database is possible by enabling the logs in MySQL configuration. Go to the MySQL home directory where you installed MySQL. In my case it [...]

 

If you have a Tip, Comment, Article or anything you want to share, please send it to: i@poisure.com