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 |
A collection of attached trace listeners which will receive tracing events.
|
Methods
| Name | Value | Summary |
|---|---|---|
| AddListener |
void |
Adds a trace listener.
|
| Critical |
void |
Traces a critical message.
|
| Error |
void |
Traces a critical message.
|
| Indent |
int |
Indents all future trace messages.
|
| Information |
void |
Traces an informational message.
|
| RemoveListener |
void |
Removes trace listener.
|
| TraceEvent |
void |
Traces a raw event.
|
| Verbose |
void |
Traces a verbose message.
|
| Warning |
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.
|
