This is an automated email from the ASF dual-hosted git repository. davydm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/logging-log4net.git
commit c6689a7f71d77443923da45d0f573c6efbecf7ac Author: Davyd McColl <[email protected]> AuthorDate: Fri Jul 22 16:40:57 2022 +0200 :truck: pull file out so it can be referenced from documentation --- src/log4net/Core/FixFlags.cs | 104 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/src/log4net/Core/FixFlags.cs b/src/log4net/Core/FixFlags.cs new file mode 100644 index 00000000..b2e94454 --- /dev/null +++ b/src/log4net/Core/FixFlags.cs @@ -0,0 +1,104 @@ +using System; + +namespace log4net.Core +{ + /// <summary> + /// Flags passed to the <see cref="LoggingEvent.Fix"/> property + /// </summary> + /// <remarks> + /// <para> + /// Flags passed to the <see cref="LoggingEvent.Fix"/> property + /// </para> + /// </remarks> + /// <author>Nicko Cadell</author> + [Flags] + public enum FixFlags + { + /// <summary> + /// Fix the MDC + /// </summary> + [Obsolete("Replaced by composite Properties")] + Mdc = 0x01, + + /// <summary> + /// Fix the NDC + /// </summary> + Ndc = 0x02, + + /// <summary> + /// Fix the rendered message + /// </summary> + Message = 0x04, + + /// <summary> + /// Fix the thread name + /// </summary> + ThreadName = 0x08, + + /// <summary> + /// Fix the callers location information + /// </summary> + /// <remarks> + /// CAUTION: Very slow to generate + /// </remarks> + LocationInfo = 0x10, + + /// <summary> + /// Fix the callers windows user name + /// </summary> + /// <remarks> + /// CAUTION: Slow to generate + /// </remarks> + UserName = 0x20, + + /// <summary> + /// Fix the domain friendly name + /// </summary> + Domain = 0x40, + + /// <summary> + /// Fix the callers principal name + /// </summary> + /// <remarks> + /// CAUTION: May be slow to generate + /// </remarks> + Identity = 0x80, + + /// <summary> + /// Fix the exception text + /// </summary> + Exception = 0x100, + + /// <summary> + /// Fix the event properties. Active properties must implement <see cref="IFixingRequired"/> in order to be eligible for fixing. + /// </summary> + Properties = 0x200, + + /// <summary> + /// No fields fixed + /// </summary> + None = 0x0, + + /// <summary> + /// All fields fixed + /// </summary> + All = 0xFFFFFFF, + + /// <summary> + /// Partial fields fixed + /// </summary> + /// <remarks> + /// <para> + /// This set of partial fields gives good performance. The following fields are fixed: + /// </para> + /// <list type="bullet"> + /// <item><description><see cref="Message"/></description></item> + /// <item><description><see cref="ThreadName"/></description></item> + /// <item><description><see cref="Exception"/></description></item> + /// <item><description><see cref="Domain"/></description></item> + /// <item><description><see cref="Properties"/></description></item> + /// </list> + /// </remarks> + Partial = Message | ThreadName | Exception | Domain | Properties, + } +} \ No newline at end of file
