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

Parent namespace source.

string sourceName

Name for the log source.

Returns
Type Description
LoggingTypeSource

The new log source.

Overrides
Exceptions
Type Condition
NotSupportedException

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