Logger.GetLogger Method (String) |
Note: This API is now obsolete.
Gets a Logger for a given role and for the calling type.
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 = "Custom" )
Parameters
- role (Optional)
- Type: System.String
The role name (see LoggingRoles for a list of standard logging roles). The default value is Custom.
Return Value
Type: LoggerA Logger for role and the calling type.