public void Log()

in src/Analyzer.Cli/Loggers/SummaryLogger.cs [39:64]


        public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
        {
            var recordLog = new Action<Dictionary<string, int>, string>((logs, newLogMessage) => {
                if (!logs.TryAdd(newLogMessage, 1))
                {
                    logs[newLogMessage] += 1;
                }
            });

            var logMessage = formatter(state, exception);

            // Some logs don't make sense to include in the summary
            // (for example, if they are logged at the end as part of the execution summary).
            // If there's a match, don't track it.
            if (omitFromSummaryRegex.IsMatch(logMessage))
                return;

            if (logLevel == LogLevel.Error)
            {
                recordLog(loggedErrors, logMessage);
            }
            else if (logLevel == LogLevel.Warning)
            {
                recordLog(loggedWarnings, logMessage);
            }
        }