add sample for file logging