Interface IPluginLog
Contract for logging
Namespace: SdlSdl.DesktopIntegrationApiInterfaces
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. |