Class LogFormatter
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
StringBuilderargs
ICollection<(string key, object value)>useTab
bool
Returns
AppendLevel(StringBuilder, LogLevel, bool)
public static StringBuilder AppendLevel(StringBuilder logBuilder, LogLevel level, bool noTrailingSpace = false)
Parameters
logBuilder
StringBuilderlevel
LogLevelnoTrailingSpace
bool
Returns
AppendPrefix(StringBuilder, bool, Type)
public static StringBuilder AppendPrefix(StringBuilder logBuilder, bool useWatermark, Type source = null)
Parameters
logBuilder
StringBuilderuseWatermark
boolsource
Type
Returns
AppendSource(StringBuilder, Type)
public static StringBuilder AppendSource(StringBuilder logBuilder, Type source)
Parameters
logBuilder
StringBuildersource
Type
Returns
AppendTimestamp(StringBuilder, bool)
public static StringBuilder AppendTimestamp(StringBuilder logBuilder, bool noTrailingSpace = false)
Parameters
logBuilder
StringBuildernoTrailingSpace
bool