Improves error log formatting