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);
}
}