Authorised Territory code examples - This .NET #blazor #tutorial shows how to create custom ErrorBoundary component and custom logger.
First, we scaffold database context using an existing database and entity framework tools.
Next, custom ErrorBoundary component is added and ILoggerFactory interface is injected. OnErrorAsync is overridden to store errors in the database.
Finally, custom logger is added via ILogger interface and registered in Program.cs file.