Search Results for

    Show / Hide Table of Contents

    Interface IPluginLog

    Contract for logging

    Namespace: Sdl.Desktop.IntegrationApi.Interfaces
    Assembly: Sdl.Desktop.IntegrationApi.dll
    Syntax
    public interface IPluginLog
    Remarks

    You can get an instance of a logger through the logging service (see IPluginLoggerFactory

    Methods

    Debug(object)

    Logs a debug message.

    Declaration
    void Debug(object message)
    Parameters
    Type Name Description
    object message

    The message to log.

    DebugFormat(string, params object[])

    Logs a debug message using the specified format and arguments.

    Declaration
    void DebugFormat(string format, params object[] args)
    Parameters
    Type Name Description
    string format

    The format for the message.

    object[] args

    The arguments to populate the message format.

    Error(object)

    Logs an error message.

    Declaration
    void Error(object message)
    Parameters
    Type Name Description
    object message

    The message to log.

    Error(object, Exception)

    Logs an error message, including the specified exception.

    Declaration
    void Error(object message, Exception exception)
    Parameters
    Type Name Description
    object message

    The message to log.

    Exception exception

    The exception.

    ErrorFormat(string, params object[])

    Logs an error message using the specified format and arguments.

    Declaration
    void ErrorFormat(string format, params object[] args)
    Parameters
    Type Name Description
    string format

    The format for the message.

    object[] args

    The arguments to populate the message format.

    Fatal(object)

    Logs a fatal error message.

    Declaration
    void Fatal(object message)
    Parameters
    Type Name Description
    object message

    The message to log.

    Fatal(object, Exception)

    Logs an fatal error message, including the specified exception.

    Declaration
    void Fatal(object message, Exception exception)
    Parameters
    Type Name Description
    object message

    The message to log.

    Exception exception

    The exception.

    FatalFormat(string, params object[])

    Logs a fatal error message using the specified format and arguments.

    Declaration
    void FatalFormat(string format, params object[] args)
    Parameters
    Type Name Description
    string format

    The format for the message.

    object[] args

    The arguments to populate the message format.

    Info(object)

    Logs a debug message.

    Declaration
    void Info(object message)
    Parameters
    Type Name Description
    object message

    The message to log.

    Info(object, Exception)

    Logs an info message, including the specified exception.

    Declaration
    void Info(object message, Exception exception)
    Parameters
    Type Name Description
    object message

    The message to log.

    Exception exception

    The exception.

    InfoFormat(string, params object[])

    Logs an info message using the specified format and arguments.

    Declaration
    void InfoFormat(string format, params object[] args)
    Parameters
    Type Name Description
    string format

    The format for the message.

    object[] args

    The arguments to populate the message format.

    Warn(object)

    Logs a warning message.

    Declaration
    void Warn(object message)
    Parameters
    Type Name Description
    object message

    The message to log.

    Warn(object, Exception)

    Logs a warning message, including the specified exception.

    Declaration
    void Warn(object message, Exception exception)
    Parameters
    Type Name Description
    object message

    The message to log.

    Exception exception

    The exception.

    WarnFormat(string, params object[])

    Logs a warning message using the specified format and arguments.

    Declaration
    void WarnFormat(string format, params object[] args)
    Parameters
    Type Name Description
    string format

    The format for the message.

    object[] args

    The arguments to populate the message format.

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(object, Action<Window>)
    In this article
    • Methods
      • Debug(object)
      • DebugFormat(string, params object[])
      • Error(object)
      • Error(object, Exception)
      • ErrorFormat(string, params object[])
      • Fatal(object)
      • Fatal(object, Exception)
      • FatalFormat(string, params object[])
      • Info(object)
      • Info(object, Exception)
      • InfoFormat(string, params object[])
      • Warn(object)
      • Warn(object, Exception)
      • WarnFormat(string, params object[])
    • Extension Methods
    Back to top Generated by DocFX