Table of Contents

Class Logger

Namespace
Microsoft.Accordant
Assembly
Accordant.Operations.dll
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

indent bool
emitTimestamp bool?
outputDirectory string

Fields

AsyncLocalEmitTimestamp

public static AsyncLocal<bool> AsyncLocalEmitTimestamp

Field Value

AsyncLocal<bool>

AsyncLocalIndentation

public static AsyncLocal<int> AsyncLocalIndentation

Field Value

AsyncLocal<int>

AsyncLocalOutputDirectory

public static AsyncLocal<string> AsyncLocalOutputDirectory

Field Value

AsyncLocal<string>

Properties

EmitTimestamp

public static bool EmitTimestamp { get; }

Property Value

bool

Indentation

public static int Indentation { get; }

Property Value

int

IndentationDelta

public static int IndentationDelta { get; }

Property Value

int

LogLambda

public static Logger.LogDelegate LogLambda { get; set; }

Property Value

Logger.LogDelegate

OutputDirectory

public static string OutputDirectory { get; }

Property Value

string

Methods

Dispose()

public void Dispose()

Log(string)

public static void Log(string logLine)

Parameters

logLine string

Serialize<T>(T, bool)

public static string Serialize<T>(T value, bool indented = true)

Parameters

value T
indented bool

Returns

string

Type Parameters

T