Table of Contents

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 string

Name of the logger.

uid string

User specific identifier of the logger instance, or null to have no user specific identifier.

useNameAsCallerClassName bool

true to use the name 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.