AquaLogic Interaction Development Kit (IDK) 6.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 Type | Condition
--- | ---
ArgumentException | An improper value is passed for loggingApplicationName.
InvalidOperationException | Logging has already been initialized via `Initialize()` or from external configuration.

#### See Also

LogFactory Class | Plumtree.Remote.Logging Namespace