public void Log()

in src/Analyzer.Cli/Loggers/SarifNotificationLogger.cs [40:61]


        public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
        {
            var failureLevel = logLevel switch
            {
                LogLevel.Error => FailureLevel.Error,
                LogLevel.Warning => FailureLevel.Warning,
                _ => FailureLevel.Note,
            };

            var notification = new Notification
            {
                Message = new Message { Text = state.ToString() },
                Level = failureLevel
            };

            if (exception != null)
            {
                notification.Exception = ExceptionData.Create(exception);
            }

            sarifLogger.LogToolNotification(notification);  
        }