BrianSandberg.ElastiLog 1.2.21
ElastiLog
Lightweight package for logging to Elasticsearch / OpenSearch.
Includes ASP.NET middleware for automatically capturing request and response data.
Options (AddElastiLog(options => ...))
OnPrerequest/OnPostrequest- synchronous hooks run right before/after the request pipeline.OnPrerequestAsync- awaited right afterOnPrerequest, before the request is passed down the pipeline. Use for enrichment that needs async work (e.g. peeking at a buffered request body) that a synchronous hook can't do.EnableStartLogging(defaultfalse) - when true, sends a thinphase: "start"document immediately (afterOnPrerequest/OnPrerequestAsync), keyed by the request's trace identifier as an explicit document id, then overwrites that same document in place with the fullphase: "completed"data at request end - instead of two separate, hard-to-correlate documents. A request that never completes leaves a permanent, directly queryable "still starting" document behind. Requires a native Elasticsearch/OpenSearch_docendpoint (the explicit-id write always PUTs to{index}/_doc/{id}, bypassing the configuredPathtemplate and any{token}substitution it does for the normal, auto-id case) - not compatible with a token-routed logging endpoint.
No packages depend on BrianSandberg.ElastiLog.
.NET 8.0
- No dependencies.
.NET 10.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 1.2.21 | 5 | 09/18/2026 |
| 1.2.20 | 35 | 09/12/2026 |
| 1.2.19 | 36 | 09/09/2026 |
| 1.2.18 | 270 | 05/02/2026 |
| 1.2.17 | 237 | 05/02/2026 |
| 1.2.16 | 384 | 01/23/2026 |
| 1.1.15 | 329 | 01/05/2026 |
| 1.1.14 | 300 | 01/05/2026 |
| 1.1.13 | 355 | 11/12/2025 |
| 1.1.11 | 399 | 10/03/2025 |
| 1.1.10 | 1,601 | 09/08/2024 |
| 1.1.9 | 657 | 09/07/2024 |
| 1.1.8 | 571 | 09/05/2024 |
| 1.1.7 | 496 | 09/04/2024 |
| 1.1.6 | 517 | 09/03/2024 |
| 1.1.5 | 627 | 11/18/2023 |
| 1.1.3 | 613 | 09/15/2023 |
| 1.1.2 | 569 | 09/15/2023 |
| 1.0.10 | 799 | 04/08/2022 |
| 1.0.9 | 696 | 04/08/2022 |
| 1.0.8 | 710 | 04/02/2022 |
| 0.1.1-pre | 768 | 04/02/2022 |
| 0.1.0-pre | 696 | 04/02/2022 |