Class TextLogProvider
Log provider that uses a Unity Text element.
Inherited Members
Namespace: FM.LiveSwitch.Unity
Assembly: FM.LiveSwitch.Unity.dll
Syntax
public class TextLogProvider : LogProvider
Constructors
TextLogProvider(Text)
Initializes a new instance of the TextLogProvider class using Info.
Declaration
public TextLogProvider(Text text)
Parameters
Type | Name | Description |
---|---|---|
Text | text | The Text element. |
TextLogProvider(Text, LogLevel)
Initializes a new instance of the TextLogProvider class.
Declaration
public TextLogProvider(Text text, LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
Text | text | The Text element. |
LogLevel | level | The log level. |
Properties
Text
Gets the Unity Text element.
Declaration
public Text Text { get; }
Property Value
Type | Description |
---|---|
Text |
Methods
Destroy()
Destroys this instance.
Declaration
public void Destroy()
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. |