Show / Hide Table of Contents

Class TypedLogger<TComponent>

Delegates to a new instance using the for getting the logger category name.

Inheritance
System.Object
TypedLogger<TComponent>
Namespace:InfinniPlatform.Logging
Assembly:InfinniPlatform.Core.dll
Syntax
public class TypedLogger<TComponent> : ILogger<TComponent>
Type Parameters
Name Description
TComponent

The event source.

Remarks

Generally the TComponent is used to enable activation of a named from dependency injection.

Constructors

| Improve this Doc View Source

TypedLogger(ILoggerFactory)

Creates a new TypedLogger<TComponent>.

Declaration
public TypedLogger(ILoggerFactory loggerFactory)
Parameters
Type Name Description
ILoggerFactory loggerFactory

The logger factory.

Methods

| Improve this Doc View Source

BeginScope<TState>(TState)

Declaration
public IDisposable BeginScope<TState>(TState state)
Parameters
Type Name Description
TState state
Returns
Type Description
IDisposable
Type Parameters
Name Description
TState
| Improve this Doc View Source

IsEnabled(LogLevel)

Declaration
public bool IsEnabled(LogLevel logLevel)
Parameters
Type Name Description
LogLevel logLevel
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)

Declaration
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Parameters
Type Name Description
LogLevel logLevel
EventId eventId
TState state
Exception exception
Func<TState, Exception, System.String> formatter
Type Parameters
Name Description
TState

Extension Methods

DynamicCollectionExtensions.GetItem(Object, Int32)
DynamicCollectionExtensions.SetItem(Object, Int32, Object)
DynamicCollectionExtensions.AddItem(Object, Object)
DynamicCollectionExtensions.InsertItem(Object, Int32, Object)
DynamicCollectionExtensions.RemoveItem(Object, Object)
DynamicCollectionExtensions.RemoveItemAt(Object, Int32)
DynamicCollectionExtensions.MoveItem(Object, Object, Int32)
DynamicObjectExtensions.TryGetPropertyValue(Object, String)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TryGetPropertyValueByPath(Object, String)
DynamicObjectExtensions.TrySetPropertyValueByPath(Object, String, Object)
ReflectionExtensions.IsInstanceOfType(Object, Type)
ReflectionExtensions.GetMemberValue(Object, String)
ReflectionExtensions.SetMemberValue(Object, String, Object)
ReflectionExtensions.InvokeMember(Object, String, Object[], out Object, Type[])
ReflectionExtensions.GetFieldValue(Object, FieldInfo)
ReflectionExtensions.SetFieldValue(Object, FieldInfo, Object)
ReflectionExtensions.GetPropertyValue(Object, PropertyInfo)
ReflectionExtensions.SetPropertyValue(Object, PropertyInfo, Object)
ReflectionExtensions.GetMethodDelegate(Object, MethodInfo)
ReflectionExtensions.GetEventDelegate(Object, EventInfo)
ReflectionExtensions.SetEventDelegate(Object, EventInfo, Object)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.