Kind: Service
Source: Pams/API/Pams.API/Pams.API.csproj (line 1)
Part of: Pams
NuGet package dependency
Elmah is a NuGet package dependency in the Pams API project for capturing and viewing application errors. It receives unhandled exceptions from the ASP.NET application and exposes logged error details through its configured ELMAH interface.
Diagram
mermaidsequenceDiagram participant Client participant API as Pams API participant Elmah participant Store as Error Store participant Developer Client->>API: Send request API->>API: Exception occurs API->>Elmah: Report exception Elmah->>Store: Save error details Developer->>Elmah: Open error log Elmah->>Developer: Show recorded errors
Usage
tsfunction openErrorLog(): void {
window.location.assign("/elmah.axd");
}
document.querySelector("#open-error-log")?.addEventListener("click", openErrorLog);
AI Coding Instructions
- Keep Elmah package configuration in the Pams API project and align it with the application's ASP.NET error-handling setup.
- Do not expose the ELMAH error-log endpoint to unauthenticated users in deployed environments.
- Verify that custom exception handlers report errors to Elmah instead of swallowing exceptions without logging them.
- Avoid placing secrets, access tokens, or request credentials in exception messages that Elmah may store.
Used by
1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.
Injected or called by (1)
Pams.API—Pams/API/Pams.API/Pams.API.csproj:1
Was this page helpful?