Cleanup logging format.