public void Update()

in src/Serilog.Sinks.AzureDataExplorer/Durable/ControlledLevelSwitch.cs [51:73]


        public void Update(LogEventLevel? minimumAcceptedLevel)
        {
            if (minimumAcceptedLevel == null)
            {
                if (m_controlledSwitch != null && OriginalLevel.HasValue)
                    m_controlledSwitch.MinimumLevel = OriginalLevel.Value;

                return;
            }

            if (m_controlledSwitch == null)
            {
                // The server is controlling the logging level, but not the overall logger. Hence, if the server
                // stops controlling the level, the switch should become transparent.
                OriginalLevel = LevelAlias.Minimum;
                m_controlledSwitch = new LoggingLevelSwitch(minimumAcceptedLevel.Value);
                return;
            }

            OriginalLevel ??= m_controlledSwitch.MinimumLevel;

            m_controlledSwitch.MinimumLevel = minimumAcceptedLevel.Value;
        }