This is an ASP.NET Core application with an Angular 10 frontend that hooks into the @gibraltarsoftware/loupe-angular (10.0.1) package to enable client side logging to Loupe.
The application can be run through Visual Studio simply by pressing F5.
The demo builds upon the ASP.NET Core Angular template by adding in calls to loupe in various locations:
-
A call is made to
loupe.information
when the route changes, by hooking in to the Router events from withinapp.component.ts
-
A call is made to
loupe.information
when the counter is incremented from withincounter.component.ts
-
A call is made to
loupe.recordException
upon navigation to the /error-page route (which does not exist). This raises an uncaught exception which is automatically picked up by the LoupeErrorHandler.
Additionally it adds the HTTP interceptor to ensure that all HTTP requests have the Loupe Agent IDs attached as headers.