communication log to file - and cleanup logs