Log messages cleanup.