add static method to exceptionformatter to format short log messages