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

3.3.3. Logging


By default, log output is sent to stderr if the broker is run on the command line, or to syslog (/var/log/messages/), if the broker is run as a service.
Expand
Table 3.1. Logging Options
Options for logging with syslog
-t [--trace] Enables all logging
--log-disable RULE Disables logging for selected levels and components (opt-out). RULE is in the form LEVEL[+]:[:PATTERN]. Levels are one of: trace, debug, info, notice, warning, error, critical.. This allows uninteresting log messages to be dropped during debugging. This can be used multiple times.
--log-enable RULE (notice+) Enables logging for selected levels and components. RULE is in the form LEVEL[+]:[:PATTERN]. Levels are one of: trace, debug, info, notice, warning, error, critical.. For example: --log-enable warning+ logs all warning, error, and critical messages. --log-enable debug:framing logs debug messages from the framing namespace. This can be used multiple times.
--log-time yes|no Include time in log messages
--log-level yes|no Include severity level in log messages
--log-source Include source file:line in log messages
--log-thread yes|no Include thread ID in messages
--log-function yes|no Include function signature in log messages
--log-hires-timestamp yes|no (0) Use hi-resolution timestamps in log messages
--log-category yes|no (1) Include category in log messages
--log-prefix STRING Prefix to append to all log messages
--log-to-stderr yes|no Send logging output to stderr. Enabled by default when run from command line.
--log-to-stdout yes|no Send logging output to stdout.
--log-to-file FILE Send log output to the specified filename. FILE.
--log-to-syslog yes|no Send logging output to syslog. Enabled by default when run as a service.
--syslog-name NAME Specify the name to use in syslog messages. The default is qpidd.
--syslog-facility LOG_XXX Specify the facility to use in syslog messages. The default is LOG_DAEMON.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部