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 IPlugin
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
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
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
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
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. |