Class LoggerExtension
Helpers function for logging
Inherited Members
Namespace: Unity.Cloud.Common
Assembly: Unity.Cloud.Common.dll
Syntax
public static class LoggerExtension
Methods
LogCritical(UCLogger, Exception)
Log a message at the Critical log level.
Declaration
public static void LogCritical(this UCLogger logger, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
LogCritical(UCLogger, Exception, string, params object[])
Declaration
public static void LogCritical(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogCritical(UCLogger, string, params object[])
Declaration
public static void LogCritical(this UCLogger logger, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogDebug(UCLogger, Exception)
Log a message at the Debug log level.
Declaration
public static void LogDebug(this UCLogger logger, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
LogDebug(UCLogger, Exception, string, params object[])
Log a message at the Debug log level.
Declaration
public static void LogDebug(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogDebug(UCLogger, string, params object[])
Log a message at the Debug log level.
Declaration
public static void LogDebug(this UCLogger logger, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogError(UCLogger, Exception)
Log a message at the Error log level.
Declaration
public static void LogError(this UCLogger logger, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
LogError(UCLogger, Exception, string, params object[])
Log a message at the Error log level.
Declaration
public static void LogError(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogError(UCLogger, string, params object[])
Log a message at the Error log level.
Declaration
public static void LogError(this UCLogger logger, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogInformation(UCLogger, Exception)
Log a message at the Information log level.
Declaration
public static void LogInformation(this UCLogger logger, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
LogInformation(UCLogger, Exception, string, params object[])
Log a message at the Information log level.
Declaration
public static void LogInformation(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogInformation(UCLogger, string, params object[])
Log a message at the Information log level.
Declaration
public static void LogInformation(this UCLogger logger, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogTrace(UCLogger, Exception)
Log a message at the Trace log level.
Declaration
public static void LogTrace(this UCLogger logger, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
LogTrace(UCLogger, Exception, string, params object[])
Log a message at the Trace log level.
Declaration
public static void LogTrace(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogTrace(UCLogger, string, params object[])
Log a message at the Trace log level.
Declaration
public static void LogTrace(this UCLogger logger, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogWarning(UCLogger, Exception)
Log a message at the Warning log level.
Declaration
public static void LogWarning(this UCLogger logger, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
LogWarning(UCLogger, Exception, string, params object[])
Log a message at the Warning log level.
Declaration
public static void LogWarning(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
Exception | exception | The exception to log. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |
LogWarning(UCLogger, string, params object[])
Log a message at the Warning log level.
Declaration
public static void LogWarning(this UCLogger logger, string message, params object[] messageArgs)
Parameters
Type | Name | Description |
---|---|---|
UCLogger | logger | The logger. |
string | message | The log message. |
object[] | messageArgs | The message arguments. |