出于故障排除目的,您可以提高单个代理子系统的日志记录级别。
要提高单个代理子系统的日志记录级别,请取消注释带 Agent Subsystems: Uncomment individual subsystems to see debug messages
标签的 agent.properties 文件部分的适当行。
代理 log4j 属性
这是 agent.properties 文件中的 log4j
属性。
log4j.rootLogger=${agent.logLevel}, R log4j.appender.R.File=${agent.logFile} log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.MaxFileSize=5000KB log4j.appender.R.layout.ConversionPattern=%d{dd-MM-yyyy HH:mm:ss,SSS z} %-5p [%t] [%c{1}@%L] %m%n log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R=org.apache.log4j.RollingFileAppender ## ## Disable overly verbose logging ## log4j.logger.org.apache.http=ERROR log4j.logger.org.springframework.web.client.RestTemplate=ERROR log4j.logger.org.hyperic.hq.measurement.agent.server.SenderThread=INFO log4j.logger.org.hyperic.hq.agent.server.AgentDListProvider=INFO log4j.logger.org.hyperic.hq.agent.server.MeasurementSchedule=INFO log4j.logger.org.hyperic.util.units=INFO log4j.logger.org.hyperic.hq.product.pluginxml=INFO # Only log errors from naming context log4j.category.org.jnp.interfaces.NamingContext=ERROR log4j.category.org.apache.axis=ERROR #Agent Subsystems: Uncomment individual subsystems to see debug messages. #----------------------------------------------------------------------- #log4j.logger.org.hyperic.hq.autoinventory=DEBUG #log4j.logger.org.hyperic.hq.livedata=DEBUG #log4j.logger.org.hyperic.hq.measurement=DEBUG #log4j.logger.org.hyperic.hq.control=DEBUG #Agent Plugin Implementations #log4j.logger.org.hyperic.hq.product=DEBUG #Server Communication #log4j.logger.org.hyperic.hq.bizapp.client.AgentCallbackClient=DEBUG #Server Realtime commands dispatcher #log4j.logger.org.hyperic.hq.agent.server.CommandDispatcher=DEBUG #Agent Configuration parser #log4j.logger.org.hyperic.hq.agent.AgentConfig=DEBUG #Agent plugins loader #log4j.logger.org.hyperic.util.PluginLoader=DEBUG #Agent Metrics Scheduler (Scheduling tasks definitions & executions) #log4j.logger.org.hyperic.hq.agent.server.session.AgentSynchronizer.SchedulerThread=DEBUG #Agent Plugin Managers #log4j.logger.org.hyperic.hq.product.MeasurementPluginManager=DEBUG #log4j.logger.org.hyperic.hq.product.AutoinventoryPluginManager=DEBUG #log4j.logger.org.hyperic.hq.product.ConfigTrackPluginManager=DEBUG #log4j.logger.org.hyperic.hq.product.LogTrackPluginManager=DEBUG #log4j.logger.org.hyperic.hq.product.LiveDataPluginManager=DEBUG #log4j.logger.org.hyperic.hq.product.ControlPluginManager=DEBUG