Namespace LogAssertions.Render
Classes
- LogSnapshotOptions
Controls how Render(FakeLogCollector, LogSnapshotOptions?) formats each captured log record. Construct with an object initializer, or take Default and
with-mutate only the knobs you care about.
- LogSnapshotRenderer
Pure renderer that converts a Microsoft.Extensions.Logging.Testing.FakeLogCollector's captured records into deterministic, snapshot-friendly multi-line text. Each record renders as a header line (
[NN] level category "message") followed by optional indented detail lines for structured state, active scopes, and an attached exception. Records are separated by a single blank line.
Enums
- CategoryStyle
How LogSnapshotRenderer renders a record's logger category.
- ExceptionStyle
How LogSnapshotRenderer renders an exception attached to a record.
- LogLevelStyle
How LogSnapshotRenderer renders a record's LogLevel.
- ScopeStyle
Whether LogSnapshotRenderer renders a record's active scopes.