Visual monitoring
For simplifying the monitoring of the work, you can use the special Monitor component. See also Visual logging components.
This window allows you to display messages from all ILogSource:
- strategies (Strategy);
- connectors (IConnector);
- own ILogSource implementations (for example, the main window in the algorithm).
The nesting of sources is showing in the form of a tree. Each parent node contains messages of all nested and so on, until the lowest level. For connectors it is also useful in the case of BasketTrader. using. Similarly, the same nesting can be arranged for your own algorithm, implementing the ILogSource.Parent property.
Monitor using
First, you need to create a window and add the component.
Then, the created window must be added to your LogManager through the GuiLogListener:
_logManager.Listeners.Add(new GuiLogListener(monitor));
Thereafter all sources LogManager.Sources (strategies, connectors, etc.) will send messages to the Monitor.