#include <DbXml.hpp> void DbXml::setLogLevel(LogLevel level, 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
.
The log level to enable or disable. Must be one of the following:
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.