Index: DebugAppender.cs =================================================================== --- DebugAppender.cs (revision 1782032) +++ DebugAppender.cs (working copy) @@ -100,6 +100,19 @@ set { m_immediateFlush = value; } } + /// + /// Gets or sets a value that indicated whether the appender will + /// output the loggerName as category when calling the + /// method. + /// + /// + /// + public bool OutputCategory + { + get { return m_outputCategory; } + set { m_outputCategory = value; } + } + #endregion Public Instance Properties #if !NETSTANDARD1_3 @@ -138,7 +151,7 @@ // // Write the string to the Debug system // - System.Diagnostics.Debug.Write(RenderLoggingEvent(loggingEvent), loggingEvent.LoggerName); + System.Diagnostics.Debug.Write(RenderLoggingEvent(loggingEvent), m_outputCategory?loggingEvent.LoggerName:null); #if !NETSTANDARD1_3 // // Flush the Debug system if needed @@ -185,6 +198,15 @@ /// private bool m_immediateFlush = true; + + /// + /// Can be used to disable outputting the loggerName in the category parameter of + /// + /// + /// The default value is true. + /// + private bool m_outputCategory = true; + #endregion Private Instance Fields } }