이 콘텐츠는 선택한 언어로 제공되지 않습니다.
7.6.2. Setting log4j Priorities
log4j
categories support priorities for logging levels. This means that different areas of the agent can be configured for different log levels.
Note
Do not set the
RHQ_AGENT_DEBUG
environment variable if you are setting priorities in the log4j.xml
file. The environment variable overrides this log4j.xml
configuration.
To enable debug logging for a category, change the priority value to
DEBUG
:
- Open the agent
log4j
file:vim agentRoot/rhq-agent/conf/log4j.xml
# vim agentRoot/rhq-agent/conf/log4j.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Reset the
priority
element for the category. By default, the agent configuration has logging for both incoming and outgoing server-agent communication and for the baseorg.rhq
class. Optionally, logging can be enabled for plug-in class loaders and JBoss remoting communication.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart the agent to load the new configuration.
The
log4j
file format is described more in the Apache log4j documentation.