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

Add callback for client-specific logging at various log levels #9

Open
CJLove opened this issue Apr 22, 2020 · 1 comment
Open

Add callback for client-specific logging at various log levels #9

CJLove opened this issue Apr 22, 2020 · 1 comment

Comments

@CJLove
Copy link
Owner

CJLove commented Apr 22, 2020

Add an API which would let the client register a logging callback function which would be called when/if the library were to log anything. This would allow integration with the client's own native logging (whatever that might be).

@CJLove
Copy link
Owner Author

CJLove commented Apr 26, 2020

Clients can currently register a concrete subclass of the ISerfLogListener subclass via the SerfClient::Monitor() API, which has an onLogRecord() method called with logging records from Serf. Need to decide whether this would also be used to return logging records from serf-cpp.

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

No branches or pull requests

1 participant