Plumtree EDK (Enterprise Web Development Kit) 5.4.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 was initialized will be enabled to send messages after this method is called successfully.

If an external configuration file is present (web.xml / 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
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