LoggerFactoryExtensions.GetLogSource Method (ILoggerFactory2, 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)
[ObsoleteAttribute("Provide an ILoggerFactory3.")] public static LogSource GetLogSource( this ILoggerFactory2 factory, Type type )
Parameters
- factory
- Type: PostSharp.Patterns.Diagnostics.Custom.ILoggerFactory2
An ILoggerFactory. - type
- Type: System.Type
The type that will emit the records.
Return Value
Type: LogSourceA LogSource for type.