consolidate logs snippet