PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​Log4NetLog4Net­Logging­BackendCreate­Type­Source­By­Source­Name
Open sandboxFocus

Log4NetLoggingBackend.CreateTypeSourceBySourceName Method

CreateTypeSourceBySourceName(LoggingNamespaceSource, String)

Creates a LoggingTypeSource for the given role and logger name.

Declaration
protected override LoggingTypeSource CreateTypeSourceBySourceName(LoggingNamespaceSource parent, string sourceName)
Parameters
Type Name Description
LoggingNamespaceSource parent

Parent namespace source.

String sourceName

Name for the log source.

Returns
Type Description
LoggingTypeSource

The new log source.

Overrides
LoggingBackend.CreateTypeSourceBySourceName(LoggingNamespaceSource, String)
Exceptions
Type Condition
NotSupportedException

When the backend is cannot create log sources based on names.