A WPF control to display log events.
Include the latest release from nuget.org in your project.
You can also use the Package Manager console with: PM> Install-Package LogBox
Available types of log events are:
Type | Description |
---|---|
Info | Use this to show informations. |
Warning | Use this to show warning. |
Error | Use this to show errors. |
Image | Use this to display image to the user (for example for debug purpose). |
Include the following namespace in your .xaml:
xmlns:logBox="clr-namespace:LogBox;assembly=LogBox"
Insert the control with:
<logBox:LogBoxControl x:Name="logBoxCtrl" EnableImageLogs="True"/>
To add log entries use the controls LogEvent()
method like:
logBoxCtrl.LogEvent(new LogBox.LogEvents.LogEventInfo("Info log message"));
For further examples see the LogBoxTest project.
Icon made by Flat Icons from www.flaticon.com