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

Getting "BlockCountExceedsLimit" exception while using log4net.Appender.AzureAppendBlobAppender #76

Open
Karthikeyan-tv opened this issue May 12, 2018 · 1 comment

Comments

@Karthikeyan-tv
Copy link

Karthikeyan-tv commented May 12, 2018

Hi @stemarie ,

I'm using log4net.Appender.AzureAppendBlobAppender to log my web app's info & errors. Sometimes I'm getting the "BlockCountExceedsLimit" exception. It is due to the append blob accepts only 50,000 block commits after that it through the exception (Conflict (409)). I have checked the code and found that it waits for the 512 log events and flush each log entry separately to the append blob. So, we can log only 50,000 log entries in a day.

Do you have any solution for this? Can we flush the 512 log entries in a single flush?

Thanks,
Karthik

@Karthikeyan-tv
Copy link
Author

Karthikeyan-tv commented May 24, 2018

I've changed the code to a little bit to append the blob, once the buffer reaches the threshold value (512 log entries) it'll flush in a single commit.
image

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

No branches or pull requests

1 participant