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

Do not do own logging by default. #5

Merged
merged 1 commit into from
Sep 28, 2016

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Sep 28, 2016

Since pollon is meant to be used as a reusable package it shouldn't log
anything but just return errors.

Just for debugging purposes we want to do emit some debug logs.

This patch removes the use of capnslog and instead accepts a Logger. Logger is
an interface that mimic the stdlib log functions (with only the Print methods).
A pollon user can call SetLogger providing a stdlib Logger or a similar logger.

By default it'll not log anything.

Since pollon is meant to be used as a reusable package it shouldn't log
anything but just return errors.

Just for debugging purposes we want to do emit some debug logs.

This patch removes the use of capnslog and instead accepts a Logger. Logger is
an interface that mimic the stdlib log functions (with only the Print methods).
A pollon user can call SetLogger providing a stdlib Logger or a similar logger.

By default it'll not log anything.
@sgotti sgotti merged commit be69bdf into sorintlab:master Sep 28, 2016
sgotti added a commit that referenced this pull request Sep 28, 2016
Do not do own logging by default.
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

Successfully merging this pull request may close these issues.

1 participant