ILoggingServiceRegisterLogChannelForExtension Method |
Registers a new log channel for an extension package.
Namespace:
Dundas.BI
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.4.0.1000)
Syntaxbool RegisterLogChannelForExtension(
Guid packageId,
string name,
Func<string> displayNameGenerator
)
Function RegisterLogChannelForExtension (
packageId As Guid,
name As String,
displayNameGenerator As Func(Of String)
) As Boolean
bool RegisterLogChannelForExtension(
Guid packageId,
String^ name,
Func<String^>^ displayNameGenerator
)
abstract RegisterLogChannelForExtension :
packageId : Guid *
name : string *
displayNameGenerator : Func<string> -> bool
Parameters
- packageId
- Type: SystemGuid
The unique identifier of the extension package. - name
- Type: SystemString
The name of the channel. - displayNameGenerator
- Type: SystemFuncString
A delegate which returns the display name of the channel in the culture of the caller.
Return Value
Type:
Boolean if the channel was registered successfully, or
if there is already
a registered channel with the same name.
Exceptions
Remarks
This method must be used to register any log channels in use so that they can appear in the application
configuration screen.
See Also