PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Enterprise­Library Namespace/Enterprise­Library­Logging­Backend­Options Class/Enterprise­Library­Logging­Backend­Options Properties/Enterprise­Library­Logging­Backend­Options.​Get­Categories Property

EnterpriseLibraryLoggingBackendOptions.GetCategories Property

Function that maps an EnterpriseLibraryLoggingTypeSource to a set of strings that will be assigned to the Categories() property of log entries (see LogEntry). The default behavior is to invoke the GetCategories() method, which returns the role, the name of the EnterpriseLibraryLoggingTypeSource type and the name of all parent LoggingNamespaceSource.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.EnterpriseLibrary
Assembly:  PostSharp.Patterns.Diagnostics.Backends.EnterpriseLibrary (in PostSharp.Patterns.Diagnostics.Backends.EnterpriseLibrary.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public Func<EnterpriseLibraryLoggingTypeSource, IEnumerable<string>> GetCategories { get; set; }

Property Value

Type: Func<EnterpriseLibraryLoggingTypeSource, IEnumerable<String>>
See Also