ITrace Interface

Summary

An interface for tracing messages to the console and other attached outputs.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Tracing
Implementing Types
graph BT Type["ITrace"] class Type type-node Implementing0["Trace"]-.->Type click Implementing0 "/api/Wyam.Common.Tracing/Trace"

Syntax

public interface ITrace

Properties

Name Value Summary
IndentLevel int
The current indent level.
Level SourceLevels
Specifies the levels of trace messages.
Listeners IEnumerable<TraceListener>
A collection of attached trace listeners which will receive tracing events.

Methods

Name Value Summary
AddListener(TraceListener) void
Adds a trace listener.
Critical(string, Object[]) void
Traces a critical message.
Error(string, Object[]) void
Traces a critical message.
Indent() int
Indents all future trace messages.
Information(string, Object[]) void
Traces an informational message.
RemoveListener(TraceListener) void
Removes trace listener.
TraceEvent(TraceEventType, string, Object[]) void
Traces a raw event.
Verbose(string, Object[]) void
Traces a verbose message.
Warning(string, Object[]) void
Traces a warning message.
WithIndent() IIndentedTraceEvent
Returns a Wyam.Common.Tracing.IIndentedTraceEvent that can be used to trace a message and indent following messages.
GitHub