LokiLoggingProvider
LokiLoggingProvider copied to clipboard
System.AggregateException on LokiLogEntryProcessor
I'm getting the following error
System.AggregateException: 'An error occurred while writing to logger(s). (Cannot access a disposed object. Object name: 'LokiLogEntryProcessor'.)'
Inner Exception: ObjectDisposedException: Cannot access a disposed object. Object name: 'LokiLogEntryProcessor'.
It is strange that I don't get the error if I don't call my custom Configuration Builder. This is running on .Net 8. I tried removing any references to logging in the custom Configuration Builder and the error occurs. If I remove the configuration builder, I don't get the error but of course I don't get my needed configurations.