ILoggingServiceRegisterLogChannel Method

Registers a log channel.

Namespace: Dundas.BI
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
bool RegisterLogChannel(
	string name,
	Func<string> displayNameGenerator
)

Parameters

name  String
The name of the channel.
displayNameGenerator  FuncString
A delegate which returns the display name of the channel in the culture of the caller.

Return Value

Boolean
if the channel was registered successfully, or if there is already a registered channel with the same name.
Exceptions
ExceptionCondition
ArgumentExceptionname is or empty.
ArgumentNullExceptiondisplayNameGenerator is .
ArgumentOutOfRangeExceptionname is longer than MaxLogChannelLength.
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