-
Notifications
You must be signed in to change notification settings - Fork 141
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
Enable defining a handler for buffer overflow when using the library as a python logging handler #76
Conversation
…as a python logging handler
@@ -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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
…e a buffer overflow example
There was a problem hiding this 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.
No description provided.