Logging in Blazor API+WASM
I'm playing with .NET Minimal API and Blazor WASM.
I've got Serilog set up on the API just fine, but now I want to set up logging on the client.
I've ran into two issues:
- Serilog.Sink.BrowerHttp is not maintained. It's just a POC.
- If I want to segregate development and production settings (like log to browser console in dev, Seq in Production), I'd have to spin up some sort of Key Vault as appsettings in wwwroot isn't secure.
How do you guys accomplish this? Am I missing something incredibly obvious?
(Repo: https://github.com/saiwolf/TodoMinimalApi It's rough as this is a learning project)