Show / Hide Table of Contents

Class JsonTraceWriter

A JSON trace writer.

Inheritance
System.Object
JsonTraceWriter
Implements
Newtonsoft.Json.Serialization.ITraceWriter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Serialization.Json.Logging
Assembly: Kephas.Serialization.Json.dll
Syntax
public class JsonTraceWriter : ITraceWriter

Constructors

| Improve this Doc View Source

JsonTraceWriter(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 Source

LevelFilter

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 Source

Trace(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.

Implements

Newtonsoft.Json.Serialization.ITraceWriter

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX