Skip to content

M1S2/LogBox

Repository files navigation

LogBox

Nuget Version GitHub Release Version GitHub License Nuget Downloads

A WPF control to display log events.

LogBox screenshot

Installation

Include the latest release from nuget.org in your project.

You can also use the Package Manager console with: PM> Install-Package LogBox

Usage

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.

App Icon

Icon made by Flat Icons from www.flaticon.com