Format exceptions log.() calls