Class Logger
public class Logger : IDisposable
- Inheritance
-
Logger
- Implements
- Inherited Members
Constructors
Logger(bool, bool?, string)
public Logger(bool indent = false, bool? emitTimestamp = null, string outputDirectory = null)
Parameters
Fields
AsyncLocalEmitTimestamp
public static AsyncLocal<bool> AsyncLocalEmitTimestamp
Field Value
AsyncLocalIndentation
public static AsyncLocal<int> AsyncLocalIndentation
Field Value
AsyncLocalOutputDirectory
public static AsyncLocal<string> AsyncLocalOutputDirectory
Field Value
Properties
EmitTimestamp
public static bool EmitTimestamp { get; }
Property Value
Indentation
public static int Indentation { get; }
Property Value
IndentationDelta
public static int IndentationDelta { get; }
Property Value
LogLambda
public static Logger.LogDelegate LogLambda { get; set; }
Property Value
OutputDirectory
public static string OutputDirectory { get; }
Property Value
Methods
Dispose()
public void Dispose()
Log(string)
public static void Log(string logLine)
Parameters
logLinestring
Serialize<T>(T, bool)
public static string Serialize<T>(T value, bool indented = true)
Parameters
valueTindentedbool
Returns
Type Parameters
T