Open mskidavid opened 1 year ago
Hey @mskidavid, what does the CsvHealthReporterConfiguration look like? Specifically, is there logFileFolder
specified? And do you know does the app has permission to write to that folder?
That is interesting because according to this:
CsvHealthReporter will try to open the log file for writing during initialization. If it can't, by default, a debug message will be output to the debugger viewer like Visual Studio Output window, etc. This can happen especially if a value for the log file path is not provided (default is used, which is the application executables folder) and the application executables are residing on a read-only file system. Docker tools for Visual Studio use this configuration during debugging, so for containerized services the recommended practice is to specify the log file path explicitly.
We're seeing some missing data in the sink, and wanted to check if there are any errors being logged by Event Flow. I'm having trouble getting the CsvHealthReporter to write errors to a CSV file. The output CSV file does not even get created and I wanted to know how to proceed with debugging this scenario?
We're on .NET6, here's the example setup code we're using: