Class TextBlockLogProvider
Log provider that writes output to a TextBlock and optionally scrolls the view.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class TextBlockLogProvider : LogProvider
Constructors
TextBlockLogProvider(CoreDispatcher, TextBlock)
Initializes a new instance of the TextBlockLogProvider class using log level DefaultLogLevel.
Declaration
public TextBlockLogProvider(CoreDispatcher dispatcher, TextBlock textBlock)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Core.CoreDispatcher | dispatcher | The UI dispatcher. |
Windows.UI.Xaml.Controls.TextBlock | textBlock | The text block control. |
TextBlockLogProvider(CoreDispatcher, TextBlock, LogLevel)
Initializes a new instance of the TextBlockLogProvider class.
Declaration
public TextBlockLogProvider(CoreDispatcher dispatcher, TextBlock textBlock, LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Core.CoreDispatcher | dispatcher | The UI dispatcher. |
Windows.UI.Xaml.Controls.TextBlock | textBlock | The text block control. |
LogLevel | level | The log level. |
TextBlockLogProvider(CoreDispatcher, TextBlock, ScrollViewer)
Initializes a new instance of the TextBlockLogProvider class.
Declaration
public TextBlockLogProvider(CoreDispatcher dispatcher, TextBlock textBlock, ScrollViewer scrollViewer)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Core.CoreDispatcher | dispatcher | The UI dispatcher. |
Windows.UI.Xaml.Controls.TextBlock | textBlock | The text block control. |
Windows.UI.Xaml.Controls.ScrollViewer | scrollViewer | The scroll viewer control. |
TextBlockLogProvider(CoreDispatcher, TextBlock, ScrollViewer, LogLevel)
Initializes a new instance of the TextBlockLogProvider class.
Declaration
public TextBlockLogProvider(CoreDispatcher dispatcher, TextBlock textBlock, ScrollViewer scrollViewer, LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Core.CoreDispatcher | dispatcher | The UI dispatcher. |
Windows.UI.Xaml.Controls.TextBlock | textBlock | The text block control. |
Windows.UI.Xaml.Controls.ScrollViewer | scrollViewer | The scroll viewer control. |
LogLevel | level | The log level. |
Methods
DoLog(LogEvent)
Logs a message at the specified log level.
Declaration
protected override void DoLog(LogEvent logEvent)
Parameters
Type | Name | Description |
---|---|---|
LogEvent | logEvent | The log event details. |