rabbitmq-server icon indicating copy to clipboard operation
rabbitmq-server copied to clipboard

Logging to console disables logging to file

Open lukebakken opened this issue 2 years ago • 2 comments

rabbitmq-min.conf:

loopback_users = none
log.console = true

RabbitMQ 3.8.34:

  ##  ##      RabbitMQ 3.8.34
  ##  ##
  ##########  Copyright (c) 2007-2022 VMware, Inc. or its affiliates.
  ######  ##
  ##########  Licensed under the MPL 2.0. Website: https://rabbitmq.com

  Erlang:      24.3.4 [jit]
  TLS Library: OpenSSL - OpenSSL 1.1.1d  10 Sep 2019

  Doc guides:  https://rabbitmq.com/documentation.html
  Support:     https://rabbitmq.com/contact.html
  Tutorials:   https://rabbitmq.com/getstarted.html
  Monitoring:  https://rabbitmq.com/monitoring.html

  Logs: <stdout>
        c:/Users/bakkenl/AppData/Roaming/RabbitMQ/log/[email protected]
        c:/Users/bakkenl/AppData/Roaming/RabbitMQ/log/rabbit@bakkenl-z01_upgrade.log

  Config file(s): c:/Users/bakkenl/development/lukebakken/rabbitmq/conf/rabbitmq-min.conf

RabbitMQ 3.9.20:

  ##  ##      RabbitMQ 3.9.20
  ##  ##
  ##########  Copyright (c) 2007-2022 VMware, Inc. or its affiliates.
  ######  ##
  ##########  Licensed under the MPL 2.0. Website: https://rabbitmq.com

  Erlang:      24.3.4 [jit]
  TLS Library: OpenSSL - OpenSSL 1.1.1d  10 Sep 2019

  Doc guides:  https://rabbitmq.com/documentation.html
  Support:     https://rabbitmq.com/contact.html
  Tutorials:   https://rabbitmq.com/getstarted.html
  Monitoring:  https://rabbitmq.com/monitoring.html

  Logs: <stdout>
        c:/Users/bakkenl/AppData/Roaming/RabbitMQ/log/rabbit@bakkenl-z01_upgrade.log

  Config file(s): c:/Users/bakkenl/development/lukebakken/rabbitmq/conf/rabbitmq-min.con

RabbitMQ 3.10.5:

   ##  ##      RabbitMQ 3.10.5
  ##  ##
  ##########  Copyright (c) 2007-2022 VMware, Inc. or its affiliates.
  ######  ##
  ##########  Licensed under the MPL 2.0. Website: https://rabbitmq.com

  Erlang:      25.0 [jit]
  TLS Library: OpenSSL - OpenSSL 1.1.1d  10 Sep 2019

  Doc guides:  https://rabbitmq.com/documentation.html
  Support:     https://rabbitmq.com/contact.html
  Tutorials:   https://rabbitmq.com/getstarted.html
  Monitoring:  https://rabbitmq.com/monitoring.html

  Logs: <stdout>
        c:/Users/bakkenl/AppData/Roaming/RabbitMQ/log/rabbit@bakkenl-z01_upgrade.log

  Config file(s): c:/Users/bakkenl/development/lukebakken/rabbitmq/conf/rabbitmq-min.conf

lukebakken avatar Jun 04 '22 19:06 lukebakken

This behavior appears to have changed with the 3.9.0 release. I'll continue investigating. cc @dumbbell

lukebakken avatar Jun 04 '22 19:06 lukebakken

Aha, I found this code which demonstrates how to ensure the default main log file is used, just set a level for it:

loopback_users = none
log.console = true
log.file.level = info

I must be the only person to have noticed this since 3.9.x 😄

lukebakken avatar Jun 05 '22 13:06 lukebakken

Closing since nobody else noticed 😆

lukebakken avatar Oct 24 '22 22:10 lukebakken