Skip to content
Novus Examples
log1.1 KB

.NET Exception with an Inner Exception Chain (log)

A .NET exception whose inner exception is introduced by the ---> marker and closed by End of inner exception stack trace, wrapped in pipe-delimited log lines. Error groupers that key on the outermost message alone merge two genuinely different faults here.

Preview — first 12 lineslog
2026-03-17 09:14:47.5512|INFO|Shop.Checkout.OrderController|POST /api/checkout started
2026-03-17 09:14:47.9930|ERROR|Shop.Checkout.OrderController|Order creation failed
System.InvalidOperationException: Sequence contains no elements
 ---> System.Data.Common.DbException: Timeout expired before the operation completed.
   at Shop.Data.PriceRepository.RequireAsync(String sku, CancellationToken ct) in /src/Shop.Data/PriceRepository.cs:line 67
   at Shop.Checkout.PricingService.TotalAsync(Cart cart, CancellationToken ct) in /src/Shop.Checkout/PricingService.cs:line 142
   --- End of inner exception stack trace ---
   at Shop.Checkout.OrderService.PlaceAsync(Order order, CancellationToken ct) in /src/Shop.Checkout/OrderService.cs:line 88
   at Shop.Checkout.OrderController.CreateAsync(CreateOrderRequest request) in /src/Shop.Checkout/OrderController.cs:line 54
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext)
2026-03-17 09:14:47.9941|INFO|Shop.Checkout.OrderController|POST /api/checkout completed status=500

Specifications

Lines
11
Logical Events
3
Exceptions
2
Inner Exception Marker
--->
End Of Inner Marker
true
Delimiter
pipe-separated prefix

Testing contract

Expected to pass
Scenario
Group the log into events and extract the exception chain.
Expected result
Three logical events are produced, and the error event exposes both the outer InvalidOperationException and the inner DbException rather than only the outer one.

What is a .log file?

LOG files are plain-text records of events emitted by software, typically one entry per line with a timestamp, severity, and message. There is no single standard, so formats range from unstructured text to structured JSON lines. They are central to debugging, monitoring, and auditing.

How to use this file

Use an example LOG file to test log parsers, timestamp and severity extraction, line-oriented streaming, and ingestion into monitoring or analysis pipelines.

How to use this file for testing

“.NET Exception with an Inner Exception Chain (log)” is a deterministic Novus Examples fixture for Observability, Log parsing, Error handling. Structured and plain-text telemetry with known timestamps, levels, request identifiers, and error states for testing log ingestion, correlation, dashboards, and alert pipelines.

Documented properties for this file: LOG · 1,100 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Telemetry fixtures use fixed trace IDs, span IDs, and timestamps so ingestion is reproducible run to run. Point your collector, parser, or query layer at the file and assert the documented span tree, metric families, or severity mix; service and host names are invented.

Code examples

grep -i error dotnet-exception-inner.log | head
awk '{print $1, $2, $NF}' dotnet-exception-inner.log | head

Generated by generation/observability.py. Free for any use, no attribution required — license.