Show / Hide Table of Contents

Class LoggerNameHelper

Inheritance
System.Object
LoggerNameHelper
Namespace:InfinniPlatform.Logging
Assembly:InfinniPlatform.Core.dll
Syntax
public static class LoggerNameHelper : object

Methods

| Improve this Doc View Source

GetCategoryName(Type)

Gets the category name for messages produced by the logger.

Declaration
public static string GetCategoryName(Type componentType)
Parameters
Type Name Description
Type componentType

The type of the logger event source.

Returns
Type Description
System.String
Remarks

The method checks whether the given type is marked using the LoggerNameAttribute attribute. If it is marked returns Name otherwise language representation of the type. If componentType is generic this logic repeats recursively for each generic parameter.

  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.