Click or drag to resize

LoggingHelperAddErrorLog Method (ILogReceiver, FuncString)

To record an error 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 AddErrorLog(
	this ILogReceiver receiver,
	Func<string> getMessage
)

Parameters

receiver
Type: StockSharp.LoggingILogReceiver
Logs receiver.
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