http://economydecoded.com/2013/01/petrol-vs-cng-vs-dieselwhat-type-of-car/
Friday, September 30, 2016
Tuesday, July 19, 2016
How to enable FINEST logging of SQL Server JDBC Driver
Add following code snippet in constructor of your class that serves as interface to the SQL Server JDBC driver which is typically where you pass the connection credentials of your SQL Server database.
===============
java.util.logging.Logger jlogger = java.util.logging.Logger.getLogger("com.microsoft.sqlserver.jdbc");
java.util.logging.FileHandler jfh;
try
{
// This block configure the logger with handler and formatter
jfh = new java.util.logging.FileHandler("C:/temp/java-sqljdbc-driver.log");
jlogger.addHandler(jfh);
java.util.logging.SimpleFormatter jformatter = new java.util.logging.SimpleFormatter();
jfh.setFormatter(jformatter);
jlogger.setLevel(java.util.logging.Level.FINEST);
// the following statement is used to log any messages
jlogger.info("MY FIRST TEST LOG MESSAGE");
}
catch (SecurityException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
===============
In above example the logging level is set to FINEST, but it can be set to FINE and FINER as well. On execution of your test program FINE level logging to file "C:/temp/java-sqljdbc-driver.log" is enabled. This file comes handy for debugging issues due to bugs in JDBC driver.
===============
java.util.logging.Logger jlogger = java.util.logging.Logger.getLogger("com.microsoft.sqlserver.jdbc");
java.util.logging.FileHandler jfh;
try
{
// This block configure the logger with handler and formatter
jfh = new java.util.logging.FileHandler("C:/temp/java-sqljdbc-driver.log");
jlogger.addHandler(jfh);
java.util.logging.SimpleFormatter jformatter = new java.util.logging.SimpleFormatter();
jfh.setFormatter(jformatter);
jlogger.setLevel(java.util.logging.Level.FINEST);
// the following statement is used to log any messages
jlogger.info("MY FIRST TEST LOG MESSAGE");
}
catch (SecurityException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
===============
In above example the logging level is set to FINEST, but it can be set to FINE and FINER as well. On execution of your test program FINE level logging to file "C:/temp/java-sqljdbc-driver.log" is enabled. This file comes handy for debugging issues due to bugs in JDBC driver.
Friday, June 3, 2016
Thursday, May 19, 2016
E-book: How to retire early in India
Excellent - download the pdf ebook and take a look!
http://freefincal.com/e-book-retire-early-india/
http://freefincal.com/e-book-retire-early-india/
Some home truths: Highs and lows of the realty sector
Read more: http://forbesindia.com/article/real-estate-special/some-home-truths-highs-and-lows-of-the-realty-sector/43175/1#ixzz494tgYh3Z
Tuesday, May 17, 2016
CPI in India from 1980 to 2015: 8.23
Interesting data - the average consumer price inflation (CPI) in India
from 1980 to 2015 comes out to be 8.23. Useful data for personal
financial planning.
https://data.oecd.org/chart/4x2A
https://data.oecd.org/chart/4x2A
Tuesday, January 19, 2016
Even the worst ELSS outperformed PPF over 15 years
This was an eye opener. Thanks MoneyLife!
https://savers.moneylife.in/blog/article/even-the-worst-elss-outperformed-ppf-over-15-years/1512.html
https://savers.moneylife.in/blog/article/even-the-worst-elss-outperformed-ppf-over-15-years/1512.html
Subscribe to:
Comments (Atom)