Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. System.Diagnostics
  3. TraceSource
  4. DefaultLevel
  • TraceSource
    • TraceSource(String)
    • TraceSource(String, SourceLevels)
    • Attributes
    • DefaultLevel
    • Listeners
    • Name
    • Switch
    • Close()
    • Flush()
    • GetSupportedAttributes()
    • TraceData(TraceEventType, Int32, Object)
    • TraceData(TraceEventType, Int32, Object[])
    • TraceEvent(TraceEventType, Int32)
    • TraceEvent(TraceEventType, Int32, String)
    • TraceEvent(TraceEventType, Int32, String, Object[])
    • TraceInformation(String)
    • TraceInformation(String, Object[])
    • TraceTransfer(Int32, String, Guid)
    • Initializing
    • TraceError(TraceSource, String)
    • TraceError(TraceSource, String, Object[])
    • TraceVerbose(TraceSource, String)
    • TraceVerbose(TraceSource, String, Object[])
    • TraceWarning(TraceSource, String)
    • TraceWarning(TraceSource, String, Object[])
net9.0
namespace System.Diagnostics
{
    public class TraceSource
    {
        public SourceLevels DefaultLevel { get; }
    }
}
nuget.org
0.1 %
Reference this API
Design Reviews
  • dotnet/runtime#72967 3 years ago (Approved)
.NET
7.08.09.0
Information specific to net9.0
Assembly

System.Diagnostics.TraceSource , Version=9.0.0.0, PublicKeyToken=b03f5f7f11d50a3a

Referencing

The API is automatically referenced.

Platform Restrictions

The property getter is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

03/18/2025
An error has occurred. This application may no longer respond until reloaded. Reload 🗙