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

FluencyLogbackAppender : logs missing when exec time is small #69

Open
BurnSaibot opened this issue Oct 12, 2022 · 0 comments
Open

FluencyLogbackAppender : logs missing when exec time is small #69

BurnSaibot opened this issue Oct 12, 2022 · 0 comments

Comments

@BurnSaibot
Copy link

BurnSaibot commented Oct 12, 2022

Hi,
we are using your FluencyLogbackAppender to collect logs on a distributed system. It worked perfectly until we tried to add a logger to collect data about tools used to manage the system, for debugging purpose. Logger use a File appender and a FluencyLogbackAppender.
Thing is, some of these tool have a very small time of execution ( like 5s for example) and we detected that the FluencyLogbackAppender seems to not have enough time to send the logs. Adding a Thread.sleep(5000) in main thread seems to "fix" the problem, but we can't afford to do so.
I checked fluency documentation and call to close() should wait until all messages are sent (https://github.com/komamitsu/fluency#wait-until-buffered-data-is-flushed-and-release-resource).
I saw fluency.close() is called in the stop() method of FluencyLogbackAppender

and can't understand why logs are not sent. Is it a configuration problem ?

@BurnSaibot BurnSaibot changed the title FluencyLogbackAppender FluencyLogbackAppender : logs missing Oct 12, 2022
@BurnSaibot BurnSaibot changed the title FluencyLogbackAppender : logs missing FluencyLogbackAppender : logs missing when exec time is small Oct 12, 2022
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

2 participants