writing activity logs