Table of Contents

Enum DumpVerbosity

Namespace
LogAssertions
Assembly
LogAssertions.dll

Verbosity level for DumpTo(TextWriter, DumpVerbosity) and the TUnit-side DumpToTestOutput(DumpVerbosity) overload. Controls how much detail is rendered per record: just the headline (Compact), the standard one-line-each detail (Default), or the full exception stack trace alongside the rest (Verbose).

public enum DumpVerbosity

Fields

Compact = 0

One line per record: [lvl] category: message. No properties, scopes, or exception details. Use when the captured-records list is only needed as an at-a-glance sanity check.

Default = 1

The standard rendering used by failure messages: headline plus one-line-each summaries of structured state, scopes, and exception. Default for the no-arg overloads of DumpTo / DumpToTestOutput.

Verbose = 2

Default rendering plus the full exception ToString() (stack trace + inner exceptions). Use when an exception's stack is the diagnostic signal.

Remarks

The exact text produced by each level is documented as not stable; tests that pin dump output should rely on broad markers (e.g. "[warn]") rather than exact whitespace or punctuation. The verbosity contract is:

  • Compact: one line per record, headline only.
  • Default: one line per record + indented detail lines for structured state, scopes, and a one-line exception summary.
  • Verbose: same as Default plus the full exception ToString() (including stack trace and inner-exception chain) for any record that carries an exception.