add log snippet