Este conteúdo não está disponível no idioma selecionado.
Chapter 17. Logging
17.1. Logging in C++ Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
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_ENABLEto set the level of logging you are interested in (trace,debug,info,notice,warning,error, orcritical):export QPID_LOG_ENABLE="warning+"
export QPID_LOG_ENABLE="warning+"Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The Qpidd broker and C++ clients use
QPID_LOG_OUTPUTto 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"
export QPID_LOG_TO_FILE="/tmp/myclient.out"Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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
set QPID_LOG_ENABLE=warning+ set QPID_LOG_TO_FILE=D:\tmp\myclient.outCopy to Clipboard Copied! Toggle word wrap Toggle overflow