Search Results for

    Show / Hide Table of Contents

    Class TextLogProvider

    Simple log provider that writes to a local string builder.

    Inheritance
    System.Object
    LogProvider
    TextLogProvider
    Inherited Members
    LogProvider.ProcessId
    LogProvider.Level
    LogProvider.Filter
    LogProvider.Log(LogEvent)
    LogProvider.GetPrefix(LogLevel, Boolean)
    LogProvider.GenerateLogLine(LogEvent)
    LogProvider.GetProduct()
    LogProvider.GetLogLevelString(LogLevel)
    LogProvider.GetPrefixTimestamp(DateTime)
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class TextLogProvider : LogProvider

    Constructors

    TextLogProvider()

    Initializes a new instance of the TextLogProvider.

    Declaration
    public TextLogProvider()

    TextLogProvider(LogLevel)

    Initializes a new instance of the TextLogProvider class.

    Declaration
    public TextLogProvider(LogLevel level)
    Parameters
    Type Name Description
    LogLevel level

    The log level.

    Properties

    Callback

    Gets or sets a callback to invoke whenever text is written to the log.

    Declaration
    public Action1<string> Callback { get; set; }
    Property Value
    Type Description
    Action1<System.String>

    Text

    Gets the logged text.

    Declaration
    public string Text { get; }
    Property Value
    Type Description
    System.String

    Methods

    Clear()

    Clears all text from the log and returns the former contents.

    Declaration
    public string Clear()
    Returns
    Type Description
    System.String

    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
    LogProvider.DoLog(LogEvent)
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0