LoggingBackend.CreateTypeSourceBySourceName Method |
Creates a LoggingTypeSource for the given role and logger name.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.10.10.0 (6.10.10.0)
C#
protected virtual LoggingTypeSource CreateTypeSourceBySourceName( LoggingNamespaceSource parent, string sourceName )
Parameters
- parent
- Type: PostSharp.Patterns.Diagnostics.LoggingNamespaceSource
Parent namespace source. - sourceName
- Type: System.String
Name for the log source.
Return Value
Type: LoggingTypeSourceThe new log source.
Exception | Condition |
---|---|
NotSupportedException | When the backend is cannot create log sources based on names. |