Skip to content

Consistent logging #14232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 30 commits into
base: main
Choose a base branch
from
Draft

Consistent logging #14232

wants to merge 30 commits into from

Conversation

mkuratczyk
Copy link
Contributor

Make our logging more consistent:

  1. get rid of rabbit_log, rabbit_shovel_log and similar modules
  2. use logger macros directly
  3. remove pid => self() metadata, since that's automatically added by logger
  4. instead of passing the logging domain on every call, set the domain on the process level

The domain should be set on more processes, but we can do that over time. The fact they are missing shouldn't affect anything anyway, since currently we don't log the domain on the logger level, but rather many log strings contain the domain "informally" (eg. peer discovery sets the domain but also prefixes all logs with "Peer discovery:")

@mkuratczyk mkuratczyk force-pushed the consistent-logging branch 6 times, most recently from b77fb53 to 7e3ad60 Compare July 15, 2025 19:01
@mergify mergify bot added the make label Jul 15, 2025
@mkuratczyk mkuratczyk force-pushed the consistent-logging branch 2 times, most recently from b3a2cc5 to e2b7ed3 Compare July 15, 2025 22:29
@mkuratczyk mkuratczyk force-pushed the consistent-logging branch from e2b7ed3 to 4f3f4b0 Compare July 15, 2025 22:31
@michaelklishin michaelklishin added this to the 4.2.0 milestone Jul 15, 2025
@mkuratczyk mkuratczyk force-pushed the consistent-logging branch 2 times, most recently from 5b43b42 to 02df90c Compare July 16, 2025 13:10
@mkuratczyk mkuratczyk force-pushed the consistent-logging branch from 02df90c to 108a39f Compare July 16, 2025 13:56
Some community plugins use rabbit_log. To simplify
the transition, we can keep this module as a simple
wrapper on logger macros.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants