Add log file to state
Write incoming messages to log file