log each activity, catch and log exceptions