Logger.GetLogger Method (String, Type) |
Note: This API is now obsolete.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
[ObsoleteAttribute("Use the LogSource class with new developments. Disable the warning with #pragma for existing code.")] public static Logger GetLogger( string role, Type type )
Parameters
- role
- Type: System.String
The role name (see LoggingRoles for a list of standard logging roles). - type
- Type: System.Type
The type that will emit the records.
Return Value
Type: LoggerA Logger for role and type.