Пример #1
0
        /// <inheritdoc/>
        public void Log <TState>(
            LogLevel logLevel,
            EventId eventId,
            TState state,
            Exception exception,
            Func <TState, Exception, string> formatter)
        {
            if (!IsEnabled(logLevel))
            {
                return;
            }
            int traceMask = Utils.GetTraceMask(eventId, logLevel);

            Utils.Trace(state, exception, traceMask, formatter);
        }