UltrachartDebugLogger
StockSharp.Xaml.Charting.Utility
Provides a debug logger which can be used to pipe debug messages from Ultrachart to your own code, by setting the IUltrachartLoggerFacade via SetLogger
Properties
Instance
public static UltrachartDebugLogger Instance { get; }
value = UltrachartDebugLogger.Instance
Gets the singleton UltrachartDebugLogger instance
Methods
SetLogger
public void SetLogger(IUltrachartLoggerFacade loggerFacade)
ultrachartDebugLogger.SetLogger(loggerFacade)
Sets the IUltrachartLoggerFacade to write to. By default this is null, but after being set, the UltrachartDebugLogger will write all output to this instance
- loggerFacade
- The IUltrachartLoggerFacade instance.
WriteLine
public void WriteLine(string formatString, object[] args)
ultrachartDebugLogger.WriteLine(formatString, args)
Writes a line to the IUltrachartLoggerFacade. By default, the facade instance is null. In this case nothing happens
- formatString
- The format string
- args
- Optional args for the format string