Oracle® WebCenter Interaction Development Kit 10.3.3.0.0

LogFactory.Initialize Method 

Initializes logging with the specified logging application name and whether or not to send log messages to receivers on the network. Any logger instances obtained before the logging framework is initialized will be enabled to send messages after this method is called successfully.

If an external configuration file is present (Web.config), the values set in the configuration file take priority over values passed in the parameters.

public static void Initialize(
   string loggingApplicationName,
   bool logToNetwork
);

Parameters

loggingApplicationName
The identifier common to the log sender and any receivers. A string of 1-32 alphanumeric ASCII characters plus underscore, hyphen, period, and space.
logToNetwork
Set to true to send log messages beyond the local machine.

Exceptions

Exception TypeCondition
ArgumentExceptionAn improper value is passed for loggingApplicationName.
InvalidOperationExceptionLogging has already been initialized via Initialize() or from external configuration.

See Also

LogFactory Class | Plumtree.Remote.Logging Namespace