generic log snippet