Open sandboxFocus

Method CreateTypeSourceBySourceName

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

The parent namespace source.

string sourceName

The name of the log source.

Returns
Type Description
LoggingTypeSource

The new log source.

Overrides
Exceptions
Type Condition
NotSupportedException

Thrown when the backend cannot create log sources based on names.