예제 #1
0
 public void AddMapping(LevelTextStyle mapping)
 {
     levelMapping.Add(mapping);
 }
예제 #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);
        }
예제 #3
0
 public void AddMapping(LevelMappingEntry mapping)
 {
     levelMapping.Add(mapping);
 }
예제 #4
0
 public void AddMapping(LevelTextStyle a_mapping)
 {
     m_level_mapping.Add(a_mapping);
 }
예제 #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);
 }
예제 #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);
 }