Improve log flags