Skip to content
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

Make origin of log message visible #16

Open
temeo opened this issue Nov 8, 2018 · 0 comments
Open

Make origin of log message visible #16

temeo opened this issue Nov 8, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@temeo
Copy link
Contributor

temeo commented Nov 8, 2018

Currently all messages are logged without any indication where they come from. As there will now be three different sources of wsrep logging in the application log (application patch, wsrep-lib, provider library), it may become difficult to locate the origin of the log message.

It was suggested to provide a prefix for all log messages which would indicate the origin:

  • lib - originates from wsrep-lib
  • provider library name - originates from loaded provider library

With this scheme, the log messages in the application log would look like following, assuming that the application logging callback uses WSREP prefix for all log messages corresponding to wsrep functionality:

WSREP: This message comes from the application wsrep patch
WSREP-lib: This message comes from wsrep-lib
WSREP-Galera: This message comes from loaded Galera provider library
@temeo temeo added the enhancement New feature or request label Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant