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

Allow integrating third party logger #213

Open
mrbald opened this issue Sep 27, 2024 · 1 comment
Open

Allow integrating third party logger #213

mrbald opened this issue Sep 27, 2024 · 1 comment

Comments

@mrbald
Copy link

mrbald commented Sep 27, 2024

For pretty much any production usage you'd want to redirect all logging into the application log file (not std::cerr).
Would be great to have a way to integrate a third party logger, can be as simple as a <severity, message> callback.

@mzimbres
Copy link
Collaborator

Hi,

the original plan was to allow users pass their custom loggers to basic_connection::async_run where the logger interface follows the redis::logger plublic api. This API however is unpolished and is likely to change in the future. It is also highly inconvenient to use the basic_connection instead of connection because of compilation times. At the moment however this is the only workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants