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
name
stringName of the logger.
uid
stringUser specific identifier of the logger instance, or
null
to have no user specific identifier.useNameAsCallerClassName
booltrue
to use thename
as the caller class name,false
to 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.