Log panel
LogControl - the table to display the log messages. The toolbar buttons let to filter messages with different logging levels.
LogControl
Sample code
<Window x:Class="LoggingControls.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sx="clr-namespace:StockSharp.Xaml;assembly=StockSharp.Xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<sx:LogControl x:Name="LogControl"/>
</Grid>
</Window>
// creating a new instance of LogManager
_logManager = new LogManager();
// adding .NET traing as a logs source.
_logManager.Sources.Add(new StockSharp.Logging.TraceSource());
// adding LogControl as a logs listener.
_logManager.Listeners.Add(new GuiLogListener(LogControl));
..........................
// sending test messages from the TraceSource:
Trace.TraceInformation("Info test message");
Trace.TraceWarning("Warning test message");
Trace.TraceError("Error test message");