Example #1
0
        /// <summary>
        /// Logs the specified logging data.
        /// </summary>
        /// <param name="loggingData">The logging data.</param>
        /// <exception cref="System.NotSupportedException"></exception>
        public void Log(LoggingData loggingData)
        {
            var loggingEventData = new LoggingEventData();

            loggingEventData.Domain          = loggingData.Domain;
            loggingEventData.ExceptionString = loggingData.ExceptionString;
            loggingEventData.LoggerName      = loggingData.LoggerName;
            loggingEventData.Level           = s_LevelDict[loggingData.Level];
            loggingEventData.Message         = loggingData.Message;
            loggingEventData.ThreadName      = loggingData.ThreadName;
            loggingEventData.TimeStamp       = loggingData.TimeStamp;
            loggingEventData.UserName        = loggingData.UserName;

            m_Log.Logger.Log(new LoggingEvent(loggingEventData));
        }
Example #2
0
 //---------------------------------------------------------------------
 /// <summary>
 /// Logs the specified logging data.
 /// </summary>
 /// <param name="loggingData">The logging data.</param>
 /// <exception cref="System.NotSupportedException"></exception>
 public void Log(LoggingData loggingData)
 {
     throw new NotSupportedException();
 }
Example #3
0
 /// <summary>
 /// Logs the specified logging data.
 /// </summary>
 /// <param name="loggingData">The logging data.</param>
 /// <exception cref="System.NotSupportedException"></exception>
 public void Log(LoggingData loggingData)
 {
     throw new NotSupportedException();
 }
Example #4
0
        /// <summary>
        /// Logs the specified logging data.
        /// </summary>
        /// <param name="loggingData">The logging data.</param>
        /// <exception cref="System.NotSupportedException"></exception>
        public void Log(LoggingData loggingData)
        {
            var loggingEventData = new LoggingEventData();

            loggingEventData.Domain = loggingData.Domain;
            loggingEventData.ExceptionString = loggingData.ExceptionString;
            loggingEventData.LoggerName = loggingData.LoggerName;
            loggingEventData.Level = s_LevelDict[loggingData.Level];
            loggingEventData.Message = loggingData.Message;
            loggingEventData.ThreadName = loggingData.ThreadName;
            loggingEventData.TimeStamp = loggingData.TimeStamp;
            loggingEventData.UserName = loggingData.UserName;

            m_Log.Logger.Log(new LoggingEvent(loggingEventData));
        }