LogSource.Get Method (String, String) |
Gets a log source for a specified role and source name.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public static LogSource Get( string sourceName, string role = null )
Parameters
- sourceName
- Type: System.String
The source name. A dotted name. - role (Optional)
- Type: System.String
A role name. See LoggingRoles.