Skip to content

10.0.1 Release#475

Draft
nblumhardt wants to merge 20 commits intomainfrom
dev
Draft

10.0.1 Release#475
nblumhardt wants to merge 20 commits intomainfrom
dev

Conversation

@nblumhardt
Copy link
Copy Markdown
Member

nblumhardt and others added 20 commits November 27, 2025 08:48
Fixes #461

Updates ParseLogEventLevel() to accept LevelAlias values (Off, Minimum,
Maximum) before attempting to parse as LogEventLevel enum.

This allows users to set 'MinimumLevel': 'Off' in appsettings.json to
completely disable logging, which previously failed with an exception.
- Mark ParseLogEventLevel as internal for testability
- Add theory tests covering all LogEventLevel enum values
- Add theory tests covering LevelAlias values (Off, Minimum, Maximum)
- Add tests for case insensitivity
- Add tests for invalid value handling
Support LevelAlias names in configuration parsing
…e.g. `"cookie1"`) does not silently convert to a single-element array
Fix: Update ConditionalSink expression syntax in sample app
issue-468: Fix empty/whitespace string converting to array type
FallbackChain and Fallible were introduced as instance methods on
LoggerSinkConfiguration in Serilog 4.1, so they weren't discovered by
the extension-method scanner. Expose them through the same surrogate
pattern already used for Sink/Logger.

Sample project demonstrates both features against an AlwaysFailingSink
so the fallback path and failure listener are actually exercised at
runtime.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mention Conditional/FallbackChain/Fallible in the nested-configuration
section of the README, and extend the sample appsettings.json with
WithComputed, ByExcluding, ExpressionTemplate, AuditTo, and a
MinimumLevel ControlledBy switch to exercise more of the supported
surface.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ation

Add WriteTo.FallbackChain and WriteTo.Fallible support in configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants