Class ActivityMonitorTextWriterClient
Formats the activity and pushes piece of texts to an Action<T> where T is a string.
Inherited Members
Namespace: CK.Core
Assembly: CK.ActivityMonitor.dll
Syntax
public class ActivityMonitorTextWriterClient : ActivityMonitorTextHelperClient, IActivityMonitorBoundClient, IActivityMonitorClient
Constructors
| Improve this Doc View SourceActivityMonitorTextWriterClient(Action<String>)
Initializes a new ActivityMonitorTextWriterClient bound to a function that must write a string.
Declaration
public ActivityMonitorTextWriterClient(Action<string> writer)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<String> | writer | Function that writes the content. |
ActivityMonitorTextWriterClient(Action<String>, LogFilter)
Initializes a new ActivityMonitorTextWriterClient bound to a function that must write a string, with a filter.
Declaration
public ActivityMonitorTextWriterClient(Action<string> writer, LogFilter filter)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<String> | writer | Function that writes the content. |
| LogFilter | filter | Filter to apply |
Methods
| Improve this Doc View SourceDumpException(StringBuilder, String, Boolean, Exception)
Recursively dumps an Exception as readable text.
Declaration
public static void DumpException(StringBuilder w, string prefix, bool displayMessage, Exception ex)
Parameters
| Type | Name | Description |
|---|---|---|
| StringBuilder | w | The TextWriter to write to. |
| String | prefix | Prefix that will start all lines. |
| Boolean | displayMessage | Whether the exception message must be displayed or skip. |
| Exception | ex | The exception to display. |
OnContinueOnSameLevel(ActivityMonitorLogData)
Writes all information.
Declaration
protected override void OnContinueOnSameLevel(ActivityMonitorLogData data)
Parameters
| Type | Name | Description |
|---|---|---|
| ActivityMonitorLogData | data | Log data. |
Overrides
| Improve this Doc View SourceOnEnterLevel(ActivityMonitorLogData)
Writes all the information.
Declaration
protected override void OnEnterLevel(ActivityMonitorLogData data)
Parameters
| Type | Name | Description |
|---|---|---|
| ActivityMonitorLogData | data | Log data. |
Overrides
| Improve this Doc View SourceOnGroupClose(IActivityLogGroup, IReadOnlyList<ActivityLogGroupConclusion>)
Writes group conclusion and updates internally managed line prefix.
Declaration
protected override void OnGroupClose(IActivityLogGroup g, IReadOnlyList<ActivityLogGroupConclusion> conclusions)
Parameters
| Type | Name | Description |
|---|---|---|
| IActivityLogGroup | g | Group that must be closed. |
| IReadOnlyList<ActivityLogGroupConclusion> | conclusions | Conclusions for the group. |
Overrides
| Improve this Doc View SourceOnGroupOpen(IActivityLogGroup)
Writes a group opening.
Declaration
protected override void OnGroupOpen(IActivityLogGroup g)
Parameters
| Type | Name | Description |
|---|---|---|
| IActivityLogGroup | g | Group information. |
Overrides
| Improve this Doc View SourceOnLeaveLevel(LogLevel)
Updates the internally maintained prefix for lines.
Declaration
protected override void OnLeaveLevel(LogLevel level)
Parameters
| Type | Name | Description |
|---|---|---|
| LogLevel | level | Previous level. |