Chapter 17. Logging
17.1. Logging in C++
The Qpidd broker and C++ clients can both use environment variables to enable logging. Linux and Windows systems use the same named environment variables and values.
- Use
QPID_LOG_ENABLE
to set the level of logging you are interested in (trace
,debug
,info
,notice
,warning
,error
, orcritical
):export QPID_LOG_ENABLE="warning+"
- The Qpidd broker and C++ clients use
QPID_LOG_OUTPUT
to determine where logging output should be sent. This is either a file name or the special valuesstderr
,stdout
, orsyslog
:export QPID_LOG_TO_FILE="/tmp/myclient.out"
- From a Windows command prompt, use the following command format to set the environment variables:
set QPID_LOG_ENABLE=warning+ set QPID_LOG_TO_FILE=D:\tmp\myclient.out