예제 #1
0
        public void Log <TState>(
            Microsoft.Extensions.Logging.LogLevel logLevel
            , Microsoft.Extensions.Logging.EventId eventId
            , TState state
            , System.Exception exception
            , System.Func <TState, System.Exception, string> formatter)
        {
            if (!IsEnabled(logLevel))
            {
                return;
            }

            if (formatter == null)
            {
                throw new System.ArgumentNullException(nameof(formatter));
            }

            string message = formatter(state, exception);

            if (string.IsNullOrEmpty(message))
            {
                return;
            }

            System.FormattableString fmtString = $"{logLevel}: {message}";
            message = fmtString.ToString(System.Globalization.CultureInfo.InvariantCulture);

            if (exception != null)
            {
                message += System.Environment.NewLine + System.Environment.NewLine + exception.ToString();
            }

            SyslogLogLevel syslogLevel = MapToSyslogLevel(logLevel);

            Send(syslogLevel, message);
        }
예제 #2
0
 public static string CreateQuery(System.FormattableString filter)
 {
     throw null;
 }
예제 #3
0
 public void DebugWriteLine(System.FormattableString text)
 {
     Debug.WriteLine(text.ToString());
 }
 public virtual Azure.AsyncPageable <Azure.Data.Tables.Models.TableItem> QueryAsync(System.FormattableString filter, int?maxPerPage = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     throw null;
 }
예제 #5
0
 public static string Create(System.FormattableString filter, System.IFormatProvider formatProvider)
 {
     throw null;
 }