Log exception with class in SQLDAO