Skip to content

Enable defining a handler for buffer overflow when using the library as a python logging handler #76

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

Merged

Conversation

montaro
Copy link
Contributor

@montaro montaro commented Jan 26, 2017

No description provided.

@coveralls
Copy link

coveralls commented Jan 26, 2017

Coverage Status

Coverage remained the same at 89.785% when pulling 3ab3aa2 on montaro:logging-interface-handle-buffer-overflow into 093cc13 on fluent:master.

@@ -188,7 +188,7 @@ module.

logging.basicConfig(level=logging.INFO)
l = logging.getLogger('fluent.test')
h = handler.FluentHandler('app.follow', host='host', port=24224)
h = handler.FluentHandler('app.follow', host='host', port=24224, buffer_overflow_handler=handler)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add handler code like Sender example?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

Copy link
Contributor

@yoichi yoichi May 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example seems incorrect since handler is a module (from fluent import handler). buffer_overflow_handler should be a callable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sent pull request to avoid variable name confliction by changing variable name in example:
#87

Copy link
Contributor Author

@montaro montaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review comment applied, kindly check.

@coveralls
Copy link

coveralls commented Jan 28, 2017

Coverage Status

Coverage remained the same at 89.785% when pulling dcfee05 on montaro:logging-interface-handle-buffer-overflow into 093cc13 on fluent:master.

@repeatedly repeatedly merged commit 004bf2e into fluent:master Jan 30, 2017
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.

4 participants