ruby log snippet