Exemple #1
0
 public void AddMapping(LevelTextStyle mapping)
 {
     levelMapping.Add(mapping);
 }
Exemple #2
0
        //private string RenderLoggingEventInternal(LoggingEvent loggingEvent)
        //{
        //    var shb = new StringBuilder(loggingEvent.RenderedMessage);
        //    if (loggingEvent.ExceptionObject != null)
        //    {
        //        loggingEvent.GetExceptionString
        //        shb.AppendLine();
        //        shb.Append(loggingEvent.ExceptionObject.Message);
        //    }
        //    return shb.ToString();
        //}

        public void AddMapping(ColoredConsoleAppender.LevelColors mapping)
        {
            levelMapping.Add(mapping);
        }
Exemple #3
0
 public void AddMapping(LevelMappingEntry mapping)
 {
     levelMapping.Add(mapping);
 }
Exemple #4
0
 public void AddMapping(LevelTextStyle a_mapping)
 {
     m_level_mapping.Add(a_mapping);
 }
Exemple #5
0
 /// <summary>
 /// Add a mapping of level to color - done by the config file
 /// </summary>
 /// <param name="mapping">The mapping to add</param>
 /// <remarks>
 /// <para>
 /// Add a <see cref="T:log4net.Appender.ManagedColoredConsoleAppender.LevelColors" /> mapping to this appender.
 /// Each mapping defines the foreground and background colors
 /// for a level.
 /// </para>
 /// </remarks>
 public void AddMapping(LevelColors mapping)
 {
     m_levelMapping.Add(mapping);
 }
Exemple #6
0
 /// <summary>
 /// Add a mapping of level to severity
 /// </summary>
 /// <param name="mapping">The mapping to add</param>
 /// <remarks>
 /// <para>
 /// Add a <see cref="T:log4net.Appender.RemoteSyslogAppender.LevelSeverity" /> mapping to this appender.
 /// </para>
 /// </remarks>
 public void AddMapping(LevelSeverity mapping)
 {
     m_levelMapping.Add(mapping);
 }