Log exception class and message