Class JsonTraceWriter
A JSON trace writer.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Serialization.Json.Logging
Assembly: Kephas.Serialization.Json.dll
Syntax
public class JsonTraceWriter : ITraceWriter
Constructors
| Improve this Doc View SourceJsonTraceWriter(ILogManager)
Initializes a new instance of the JsonTraceWriter class.
Declaration
public JsonTraceWriter(ILogManager logManager)
Parameters
Type | Name | Description |
---|---|---|
ILogManager | logManager | Manager for log. |
Properties
| Improve this Doc View SourceLevelFilter
Gets the System.Diagnostics.TraceLevel that will be used to filter the trace messages passed to the writer. For example a filter level of System.Diagnostics.TraceLevel.Info will exclude System.Diagnostics.TraceLevel.Verbose messages and include System.Diagnostics.TraceLevel.Info, System.Diagnostics.TraceLevel.Warning and System.Diagnostics.TraceLevel.Error messages.
Declaration
public TraceLevel LevelFilter { get; }
Property Value
Type | Description |
---|---|
System.Diagnostics.TraceLevel | The System.Diagnostics.TraceLevel that will be used to filter the trace messages passed to the writer. |
Methods
| Improve this Doc View SourceTrace(TraceLevel, String, Exception)
Writes the specified trace level, message and optional exception.
Declaration
public void Trace(TraceLevel level, string message, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
System.Diagnostics.TraceLevel | level | The System.Diagnostics.TraceLevel at which to write this trace. |
System.String | message | The trace message. |
System.Exception | ex | The trace exception. This parameter is optional. |