XLL+ Class Library (6.3)

PropertyConfigurator::configure

Configures the logging framework

static void configure(
   const TCHAR* fileName,
   bool ignoreMissingFile = false
);
static bool configure(
   const TCHAR* fileName,
   bool ignoreMissingFile,
   std::basic_string<TCHAR>& errorString
);

Parameters

fileName

The full name of the configuration file, including its directory.

ignoreMissingFile

If true, then a missing configuration file is not considered an error, and in this event true will be returned. If false or omitted, then the configuration file must be present. If missing, the function will return false.

fileName

The full name of the configuration file, including its directory.

ignoreMissingFile

If true, then a missing configuration file is not considered an error, and in this event true will be returned. If false, then the configuration file must be present. If false, then the configuration file must be present; if it is not found, the function will return false, and errorString will be set to an error message.

errorString

If an error occurs, a description of the problem will be placed in this variable, and false will be returned. If no error occurs, errorString will be cleared.

Return Value

If the method returns false, an error occurred, and a description can be found in errorString.

Remarks

Configuration files

Requirements

Header: cpplog.h

See Also

PropertyConfigurator Class | PropertyConfigurator Methods