/// <summary>
        /// Creates the string for a new log line without newline command.
        /// Writes this string to TxtFile and TextBox on Gui.
        /// </summary>
        private void CreateLogLine(Services.Mode mode)
        {
            string time = clock.GetDateTime().ToString("HH:mm:ss.fff");
            string runningFor = clock.GetTimeSinceStringLong(measurementStartTime);
            string logId = mode.GetLogId();

            string logLine = String.Format("{0} {1} {2}", time,
                runningFor, logId);

            logFile.AddLine(logLine);
            loggerGui.AddLogLine(logLine);
        }