public void ProcessLogDetails(LogDetails logDetails)
        {
            if (!_processorProvider.IsLoggerKeySupported(logDetails.LoggerKey))
                return;

            _processorProvider.Get(logDetails.LoggerKey).ProcessLogDetails(logDetails);
        }
Пример #2
0
        private void Publish(string message, Exception exception)
        {
            var logDetails = new LogDetails
                {
                    Exception = exception,
                    Message = message,
                    LoggerKey = this.keyName,
                    SessionId = SessionIdLoggingContext.SessionId
                };

            string serializedLogDetails = logDetails.ToJson();

            lock (socketLock)
            {
                if (!this.socketManager.Terminated)
                {
                    this.sender.Send(serializedLogDetails, Encoding.Unicode);
                }
            }
            
        }
Пример #3
0
 public void ProcessLogDetails(LogDetails details)
 {
     EventDispatcher.Raise(new SqlExecuted());
 }
 public void ProcessLogDetails(LogDetails details)
 {
     EventDispatcher.Raise(new SessionOpened());
 }
 public void ProcessLogDetails(LogDetails details)
 {
     EventDispatcher.Raise(new ExceptionOccured());
 }