I have developed a net core 3.1 service for windows, the service works fine, but fails to write the log file. during debugging Serilog writes the file correctly, but once in