Class TextViewLogProvider
An Android TextView-based log provider.
Inherited Members
Namespace: FM.LiveSwitch.Android
Assembly: FM.LiveSwitch.Android.dll
Syntax
public class TextViewLogProvider : LogProvider
Constructors
TextViewLogProvider(Activity, TextView)
Initializes a new instance of the TextViewLogProvider class.
Declaration
public TextViewLogProvider(Activity activity, TextView textView)
Parameters
Type | Name | Description |
---|---|---|
Activity | activity | The activity. |
TextView | textView | The text view. |
TextViewLogProvider(Activity, TextView, LogLevel)
Initializes a new instance of the TextViewLogProvider class.
Declaration
public TextViewLogProvider(Activity activity, TextView textView, LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
Activity | activity | The activity. |
TextView | textView | The text view. |
LogLevel | level | The 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. |
Overrides
WriteLine(String)
Writes a line of text to the log.
Declaration
public void WriteLine(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to write to the log. |