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

Added possibility for a custom internal log handler injection #9302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

imorda
Copy link

@imorda imorda commented Aug 29, 2024

Sometimes it's required to collect internal Fluent Bit logs inside an application that uses it as a library.
Unfortunately, Fluent Bit only properly supports logging to a file (that is slow and the implementation is very simple since the file is not ever rotated) and to stderr (that mixes with other stderr messages and cannot be properly handled inside an application when the Fluent Bit is used as a library).

This PR adds a configuration parameter that allows library clients to override this behavior by providing their custom internal logs handling function

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

@imorda imorda force-pushed the feature_custom_internal_logs_handler branch from 25a38b2 to cc62f7c Compare August 29, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant