Class LogManager
Manager class that returns the correct instance of the logger managed by code factory.
Inherited Members
Namespace: CodeFactory.Logging
Assembly: CodeFactory.Logging.dll
Syntax
public static class LogManager
Methods
| Improve this Doc View SourceGetLogger(string)
Loads the target logger instance.
Declaration
public static ILogger GetLogger(string loggerName)
Parameters
Type | Name | Description |
---|---|---|
string | loggerName | The name of the logger to be loaded. |
Returns
Type | Description |
---|---|
ILogger | Instance of the target code factory logger. |
GetLogger(Type)
Loads the target logger instance.
Declaration
public static ILogger GetLogger(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
Type | targetType | The target type to load the logger for. |
Returns
Type | Description |
---|---|
ILogger | Instance of the target code factory logger. |
GetLogger<T>()
Loads the target logger instance.
Declaration
public static ILogger GetLogger<T>() where T : class
Returns
Type | Description |
---|---|
ILogger | Instance of the target code factory logger. |
Type Parameters
Name | Description |
---|---|
T | The target class type to be logged. |