/
aprogrammer
/
serilog
Обзор
Документация
Войти
/
aprogrammer
/
serilog
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/Serilog/Capturing/TrimConfiguration.cs
13 строк
638 B
Nicholas Blumhardt
Move TrimConfiguration to Capturing namespace, 'Configuration' namespace is just for the public builder syntax
29 май 2024, 02:16
29 май 2024, 02:16
9fcf795
Код
Авторство
О чём код?
namespace Serilog.Capturing; static class TrimConfiguration { /// <summary> /// True if compiler-generated types are treated specially by Serilog during logging. The main example /// of this would be anonymous types, which have a special compiler-generated form. If this switch is /// disabled, Serilog will not be able to destructure anonymous types, but will still be able to log /// them as scalar values. /// </summary> public static bool IsCompilerGeneratedCodeSupported { get; } = !AppContext.TryGetSwitch("Serilog.Capturing.IsCompilerGeneratedCodeSupported", out var isEnabled) || isEnabled; }