Table of Contents

Class LogFormatter

Namespace
Coherence.Log
Assembly
Coherence.Log.dll
public static class LogFormatter
Inheritance
LogFormatter

Methods

AppendArgs(StringBuilder, ICollection<(string key, object value)>, bool)

public static StringBuilder AppendArgs(StringBuilder logBuilder, ICollection<(string key, object value)> args, bool useTab = true)

Parameters

logBuilder StringBuilder
args ICollection<(string key, object value)>
useTab bool

Returns

StringBuilder

AppendLevel(StringBuilder, LogLevel, bool)

public static StringBuilder AppendLevel(StringBuilder logBuilder, LogLevel level, bool noTrailingSpace = false)

Parameters

logBuilder StringBuilder
level LogLevel
noTrailingSpace bool

Returns

StringBuilder

AppendPrefix(StringBuilder, bool, Type)

public static StringBuilder AppendPrefix(StringBuilder logBuilder, bool useWatermark, Type source = null)

Parameters

logBuilder StringBuilder
useWatermark bool
source Type

Returns

StringBuilder

AppendSource(StringBuilder, Type)

public static StringBuilder AppendSource(StringBuilder logBuilder, Type source)

Parameters

logBuilder StringBuilder
source Type

Returns

StringBuilder

AppendTimestamp(StringBuilder, bool)

public static StringBuilder AppendTimestamp(StringBuilder logBuilder, bool noTrailingSpace = false)

Parameters

logBuilder StringBuilder
noTrailingSpace bool

Returns

StringBuilder