TraceSourceExtensions Class
Extensions of TraceSource
Namespace
Songhay.Extensions
Base Types
  • object
graph BT Type-->Base0["object"] Type["TraceSourceExtensions"] class Type type-node

Syntax

public static class TraceSourceExtensions

Remarks

Based on Fonlow.Diagnostics by Zijian Huang [https://github.com/zijianhuang/Fonlow.Diagnostics] Also see “Use TraceSource Efficiently” [http://www.codeproject.com/Tips/1071853/Use-TraceSource-Efficiently]

Methods

Name Return Value Summary
TraceError(TraceSource?, Exception?, bool) void
Traces the error.
static
TraceError(TraceSource?, Exception) void
Traces the error.
static
TraceError(TraceSource?, string, object[]) void
Traces the error.
static
TraceError(TraceSource?, string) void
Traces the error.
static
TraceVerbose(TraceSource?, string, object[]) void
Trace event type TraceEventType.Verbose
static
TraceVerbose(TraceSource?, string) void
Trace event type TraceEventType.Verbose
static
TraceWarning(TraceSource?, string, object[]) void
Trace event type TraceEventType.Warning
static
TraceWarning(TraceSource?, string) void
Trace event type TraceEventType.Warning
static
WithSourceLevels(TraceSource?, SourceLevels) TraceSource?
Returns the TraceSource with the specified SourceLevels.
static
WithSourceLevels(TraceSource?) TraceSource?
Returns the TraceSource with Switch Level SourceLevels.All.
static
WriteLine(TraceSource?, string, object[]) void
Trace event type TraceEventType.Information
static
WriteLine(TraceSource?, string) void
Trace event type TraceEventType.Information
static