support format when logging throwable