我正在尝试解决RabbitMQ 3.6.6的一个特定问题。为了收集更多信息,我想将日志级别切换到debug级别。然而,似乎没有起作用。
这是与官方文档相关的
然而,在实际日志中看到的内容(重新启动服务器后)与详细日志完全不同。 我看到的所有消息都只标记为“INFO REPORT”或“ERROR REPORT”,而且当我创建队列时,我只看到两条消息:
accepting AMQP connection [...] Mirrored queue [...] in vhost [...]: Adding mirror on node [...]
这看起来并不特别详细。那么,我该如何在RabbitMQ中将日志级别设置为debug?
这是与官方文档相关的
/etc/rabbitmq/rabbitmq.config
的部分内容。[
{rabbit,
[
{log_levels, [{connection, debug}, {queue, debug}]},
{log,
[{file, [{level, debug}]},
{categories,
[{connection,
[{level, debug}]
},
{queue,
[{level, debug}]
}
]
}]
},
]
}
]
然而,在实际日志中看到的内容(重新启动服务器后)与详细日志完全不同。 我看到的所有消息都只标记为“INFO REPORT”或“ERROR REPORT”,而且当我创建队列时,我只看到两条消息:
accepting AMQP connection [...] Mirrored queue [...] in vhost [...]: Adding mirror on node [...]
这看起来并不特别详细。那么,我该如何在RabbitMQ中将日志级别设置为debug?
/var/log/rabbitmq
中的日志,而不是控制台日志。 - Arseni Mourzenko