此内容没有您所选择的语言版本。

7.3. Change Broker Logging Time Resolution


The time stamp resolution of logging can be changed while the broker is running.

Procedure 7.1. Change Resolution Logging on a Running Broker

  1. Edit the file /etc/qpid/qpidd.conf and add the following:
    log-time=1
    log-enable=info+
    log-to-file=/var/lib/qpidd/771830.log
  2. Launch qpid-tool.
  3. Now that you are running qpid-tool, issue the following command:
    list broker
    You might have to do this a few times before receiving an answer. It can take a while to get all the info from the broker.
  4. When you see a response similar to this:
    114  14:03:39  -          amqp-broker
    Use the number (in this example "114") to refer to the broker.
  5. Issue the following command, substituting the appropriate number for your broker:
    call 114 setLogHiresTimestamp 1
  6. Now look at the log file /var/lib/qpidd/771830.log and verify that it has started using highres time stamps. You might need to do something to get the broker to log a few more lines, for example start another qpid-tool.
  7. To return the logging to the normal resolution, issue the following command in qpid-tool:
    call 114 setLogHiresTimestamp 0
  8. Now look at the logfile again, and verify that it has stopped using highres.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部