이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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+"
export QPID_LOG_ENABLE="warning+"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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"
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.out
Copy to Clipboard Copied! Toggle word wrap Toggle overflow