logging user actions to file