Esempio n. 1
0
 public void LogEtlMessage(EtlMessage message)
 {
     foreach (var logger in _loggers)
     {
         logger.LogEtlMessage(message);
     }
 }
 public void BatchLogEtlMessage(EtlMessage[] messages)
 {
     foreach (var message in messages)
     {
         LogEtlMessage(message);
     }
 }
 public void LogEtlMessage(EtlMessage message)
 {
     foreach (var logger in _loggers)
     {
         logger.LogEtlMessage(message);
     }
 }
        public void LogEtlMessage(EtlMessage message)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }

            message.SequentialId = _messages.Count + 1;
            _messages.Add(message);
        }
Esempio n. 5
0
        public void LogEtlMessage(EtlMessage message)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }

            message.SequentialId = _messages.Count + 1;
            _messages.Add(message);
        }
 public void LogEtlMessage(EtlMessage message)
 {
     _writer.Write(MessageFormat,
         FormatDateTime(message.LogDateTime), //0
         FormatString(message.EtlPackageId), //1
         FormatString(message.EtlSessionId), //2
         FormatString(message.EtlStepName), //3
         message.MessageType, //4
         FormatString(message.Text), //5
         FormatString(message.StackTrace), //6
         message.Flags, //7
         FormatDateTime(message.LogUtcDateTime) //8
     );
     _writer.Write(LINE_DELIMITER);
 }
Esempio n. 7
0
 public void LogEtlMessage(EtlMessage message)
 {
     _writer.Write(MessageFormat,
                   FormatDateTime(message.LogDateTime),   //0
                   FormatString(message.EtlPackageId),    //1
                   FormatString(message.EtlSessionId),    //2
                   FormatString(message.EtlStepName),     //3
                   message.MessageType,                   //4
                   FormatString(message.Text),            //5
                   FormatString(message.StackTrace),      //6
                   message.Flags,                         //7
                   FormatDateTime(message.LogUtcDateTime) //8
                   );
     _writer.Write(LINE_DELIMITER);
 }
        public void LogEtlMessage(EtlMessage message)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }

            if (message.MessageType == EtlMessageType.StepStart)
            {
                _currentPackageStepIndex++;
                _currentProgress = ((_currentPackageStepIndex - 1) * 100) / _packageStepCount;
            }

            //_worker.ReportProgress(_currentProgress, message);
        }
Esempio n. 9
0
 public void LogEtlMessage(EtlMessage message)
 {
 }
 public void LogEtlMessage(EtlMessage message)
 {
     _writer.WriteLine(string.Format("[{0}] {1}", GetNowString(), message.Text));
 }
 public void BatchLogEtlMessage(EtlMessage[] messages)
 {
 }
 public void LogEtlMessage(EtlMessage message)
 {
 }