Class LoggerProvider
Main UCLogger class that allow retrieving/creating a UCLogger object
Inherited Members
Namespace: Unity.Cloud.Common
Syntax
public static class LoggerProvider
Methods
GetLogger(String)
Initializes and returns a logger with a specified name.
Declaration
public static UCLogger GetLogger(string typeFullName)
Parameters
Type | Name | Description |
---|---|---|
String | typeFullName | The logger name. |
Returns
Type | Description |
---|---|
UCLogger | The logger. |
GetLogger<T>()
Initializes and returns a logger for a specified type.
Declaration
public static UCLogger GetLogger<T>()
Returns
Type | Description |
---|---|
UCLogger | The logger. |
Type Parameters
Name | Description |
---|---|
T | The type for the logger. |
GetLogger<T>(IEnumerable<(String, Object)>)
Initializes and returns a logger for a specified type and property collection.
Declaration
public static UCLogger GetLogger<T>(IEnumerable<(string, object)> properties)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<(T1, T2)<String, Object>> | properties | The properties to be tracked by the logger. |
Returns
Type | Description |
---|---|
UCLogger | The logger. |
Type Parameters
Name | Description |
---|---|
T | The type for the logger. |