Output exception class in logs