DbXml::setLogLevel

API Ref

#include <DbXml.hpp>

void DbXml::setLogLevel(LogLevel level, bool enabled)

void DbXml::setLogCategory(LogCategory category, bool enabled)

void DbXml::dbxml_version(int *majorp, int *minorp, int *patchp)


Description: DbXml::setLogLevel

Berkeley DB XML can be configured to generate a stream of messages to help application debugging. The messages are categorized by subsystem, and by importance. The messages are sent to the output stream that is configured in the Berkeley DB environment associated with the XmlManager generating the message. The output is sent to std::cerr if no environment is associated with the XmlManager.

Parameters

level
The log level to enable or disable.
DbXml::LEVEL_DEBUG - Enable program execution tracing messages.
DbXml::LEVEL_INFO - Enable informational messages.
DbXml::LEVEL_WARNING - Enable warning messages.
DbXml::LEVEL_ERROR - Enable fatal error messages.
DbXml::LEVEL_ALL - Enable all debug levels.
enabled
A Boolean flag that specifies whether to enable or disable the level or category.

Description: DbXml::setLogCategory(LogCategory category, bool enabled)

Berkeley DB XML can be configured to generate a stream of messages to help application debugging. The messages are categorized by subsystem, and by importance. The messages are sent to the output stream that is configured in the Berkeley DB environment associated with the XmlManager generating the message. The output is sent to std::cerr if no environment is associated with the XmlManager.

Parameters

category
The log category to enable or disable.
DbXml::CATEGORY_INDEXER - Enable indexer messages.
DbXml::CATEGORY_QUERY - Enable query processor messages.
DbXml::CATEGORY_OPTIMIZER - Enable optimizer messages.
DbXml::CATEGORY_DICTIONARY - Enable dictionary messages.
DbXml::CATEGORY_CONTAINER - Enable container messages.
DbXml::CATEGORY_NODESTORE - Enable node storage messages.
DbXml::CATEGORY_MANAGER - Enable manager messages.
DbXml::CATEGORY_ALL - Enable all messages.
enabled
A Boolean flag that specifies whether to enable or disable the level or category.

Description: DbXml::dbxml_version(int *majorp, int *minorp, int *patchp)

Returns the Berkeley DB XML release number.

Parameters

majorp
The release's major version number.
minorp
The release's minor version number.
patchp
The release's patch version number.

APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.