Implements writing LogEntry to file