Class LogManagerExtensions
Extension methods for ILogManager.
Inheritance
System.Object
LogManagerExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Logging
Assembly: Kephas.Core.dll
Syntax
public static class LogManagerExtensions
Methods
| Improve this Doc View SourceGetLogger(ILogManager, Type)
Gets the logger for the provided type.
Declaration
public static ILogger GetLogger(this ILogManager logManager, Type type)
Parameters
Type | Name | Description |
---|---|---|
ILogManager | logManager | The logger factory. |
System.Type | type | The type. |
Returns
Type | Description |
---|---|
ILogger | A logger for the provided type. |
GetLogger<TTarget>(ILogManager)
Gets the logger for the provided type.
Declaration
public static ILogger GetLogger<TTarget>(this ILogManager logManager)
Parameters
Type | Name | Description |
---|---|---|
ILogManager | logManager | The logger factory. |
Returns
Type | Description |
---|---|
ILogger | A logger for the provided type. |
Type Parameters
Name | Description |
---|---|
TTarget | The type for which the logger should be created. |