< Summary

Information
Class: Chronicler.Diagnostics.DynamicDiagnosticLevel
Assembly: Chronicler.Diagnostics
File(s): /home/runner/work/Chronicler/Chronicler/src/Chronicler.Diagnostics/DynamicDiagnosticLevel.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 17
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Level()100%11100%

File(s)

/home/runner/work/Chronicler/Chronicler/src/Chronicler.Diagnostics/DynamicDiagnosticLevel.cs

#LineLine coverage
 1//=======================================================================
 2// DynamicDiagnosticLevel.cs
 3//=======================================================================
 4// MIT License, Copyright (c) 2024-present David Oravsky (mrdav30)
 5// See LICENSE file in the project root for full license information.
 6//=======================================================================
 7
 8namespace Chronicler.Diagnostics;
 9/// <summary>
 10/// Provides a placeholder level for dynamic-level interpolated logging.
 11/// </summary>
 12public readonly struct DynamicDiagnosticLevel : IDiagnosticLevelProvider
 13{
 14    /// <summary>Gets the placeholder used when no dynamic level is supplied.</summary>
 15    /// <value><see cref="DiagnosticLevel.None"/>. Pass an explicit level to enable dynamic logging.</value>
 116    public DiagnosticLevel Level => DiagnosticLevel.None;
 17}

Methods/Properties

get_Level()