Click or drag to resize

LoggingHelperAddLog Method

To record a message to the log.

Namespace:  StockSharp.Logging
Assembly:  StockSharp.Logging (in StockSharp.Logging.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static void AddLog(
	this ILogReceiver receiver,
	LogLevels level,
	Func<string> getMessage
)

Parameters

receiver
Type: StockSharp.LoggingILogReceiver
Logs receiver.
level
Type: StockSharp.LoggingLogLevels
The level of the log message.
getMessage
Type: SystemFuncString
The function returns the text for Message.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILogReceiver. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also