Constructor WsLogger
- Namespace
- WhalesSecret.TradeScriptLib.Logging
- Assembly
- WhalesSecret.TradeScriptLib.dll
WsLogger(string, string?, bool)
Creates a logger instance with given user ID.
public WsLogger(string name, string? uid = null, bool useNameAsCallerClassName = true)
Parameters
namestringName of the logger.
uidstringUser specific identifier of the logger instance, or
nullto have no user specific identifier.useNameAsCallerClassNamebooltrueto use thenameas the caller class name,falseto compute it every time from stack frames using reflection.
Remarks
Logger name is used in the NLog configuration to specify targets applicable to a log event.