Aqueduct.Diagnostics.Logger.LogEvent C# (CSharp) Method

LogEvent() private method

private LogEvent ( log4net.Core.Level level, string message, object>.Dictionary extraInfo, Exception exception ) : void
level log4net.Core.Level
message string
extraInfo object>.Dictionary
exception System.Exception
return void
        private void LogEvent(Level level, string message, Dictionary<string, object> extraInfo, Exception exception)
        {
            if (m_log.Logger.IsEnabledFor(level))
            {
                LoggingEvent loggingEvent = new LoggingEvent(declaringType, m_log.Logger.Repository, m_log.Logger.Name,
                                                             Level.Info, message, exception);
                if (extraInfo != null)
                {
                    foreach (KeyValuePair<string, object> pair in extraInfo)
                    {
                        loggingEvent.Properties[pair.Key] = pair.Value;
                    }
                }
                m_log.Logger.Log(loggingEvent);
            }
        }