improve log formatting