Interface ILoggerFactory
Creates a ILogger Roles.GetRolesForUser()
Namespace:Intranet.Common
Assembly:Intranet.Common.dll
Syntax
public interface ILoggerFactory
Methods
| Improve this Doc View SourceCreateLogger(String)
Gets a loggerFactory with the specified name.
Declaration
ILogger CreateLogger(string loggerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | loggerName | The name of the loggerFactory. |
Returns
Type | Description |
---|---|
ILogger | A loggerFactory with specified name. |
CreateLogger(Type)
Gets a loggerFactory for the specified type.
Declaration
ILogger CreateLogger(Type t)
Parameters
Type | Name | Description |
---|---|---|
System.Type | t | The type of the logging class. |
Returns
Type | Description |
---|---|
ILogger | A loggerFactory for the specified type. |
SetDynamicParameters(IEnumerable<KeyValuePair<String, String>>)
Adds the given parameter to the current context of the logging framework.
Declaration
void SetDynamicParameters(IEnumerable<KeyValuePair<string, string>> parameters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>> | parameters | The parameters to add. |
Remarks
Use this feature to add dynamic parameters to your log.