Class LogFactory
The log factory implementation. Provides functionality for create and configure NLog or Common Logging instance, if no one is exists, the DefaultLog implementation is used instead.
Inheritance
System.Object
LogFactory
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: FixAntenna.Common.Logging
Assembly: FixAntenna.Common.dll
Syntax
public sealed class LogFactory
Methods
GetLog(String)
Gets log instance.
Declaration
public static ILog GetLog(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | the logical name of the ILog instance |
Returns
Type | Description |
---|---|
ILog |
GetLog(Type)
Gets log instance.
Declaration
public static ILog GetLog(Type aClass)
Parameters
Type | Name | Description |
---|---|---|
System.Type | aClass | the class |
Returns
Type | Description |
---|---|
ILog |