Show / Hide Table of Contents

Interface ILoggerFactory

Creates a ILogger Roles.GetRolesForUser()

Namespace:Intranet.Common
Assembly:Intranet.Common.dll
Syntax
public interface ILoggerFactory

Methods

| Improve this Doc View Source

CreateLogger(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX