Class LogExtensions
- Namespace
- WhalesSecret.TradeScriptLib.Logging
- Assembly
- WhalesSecret.TradeScriptLib.dll
Extensions related to logging.
public static class LogExtensions
- Inheritance
-
LogExtensions
- Inherited Members
Fields
- DefaultBoundedStringMaxLength
Maximum length permitted for bounded strings by default.
Methods
- BoundedString(string?, int, bool)
Extension of string class to return at most
maxLength
characters of the string for formatting purposes.
- GetMdlcId()
Obtains the current MDLC identifier.
- LogJoin(IEnumerable, char)
Extension of enumerable to format a comma separated string.
- LogJoin(Span<string>, char)
Extension of span of strings to format a comma separated string.
- SetMdlc(Logger, string?)
Sets a unique NLog Mapped Diagnostics Logical Context to the current execution context. This method is to be called at the start of each async context that we want to track separately.
- SetMdlc(Logger, ushort, string?)
Sets a unique NLog Mapped Diagnostics Logical Context to the current execution context. This method is to be called at the start of each async context that we want to track separately.
- ToBoundedString(object?, int, bool)
Extension of ToString() to return at most
maxLength
characters of the string representation for formatting purposes.