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) => throw null;
Ejemplo n.º 2
0
 public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter <T>(this Microsoft.Extensions.Logging.ILoggingBuilder builder, string category, Microsoft.Extensions.Logging.LogLevel level) where T : Microsoft.Extensions.Logging.ILoggerProvider
 {
     throw null;
 }
 public static void Log(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.LogLevel logLevel, string message, params object[] args)
 {
 }
 bool Microsoft.Extensions.Logging.ILogger.IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel)
 {
     throw null;
 }
Ejemplo n.º 5
0
 public static Microsoft.Extensions.Logging.ILoggingBuilder SetMinimumLevel(this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Logging.LogLevel level)
 {
     throw null;
 }
 public LogEntry(Microsoft.Extensions.Logging.LogLevel logLevel, string category, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception?exception, System.Func <TState, System.Exception?, string> formatter)
 {
     throw null;
 }
 public static void Log(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, System.Exception?exception, string?message, params object?[] args)
 {
 }
Ejemplo n.º 8
0
        /*
         * {
         *      Log(logLevel, eventId, message);
         *      Log(logLevel, exception, message);
         *      Log(logLevel, message);
         * }
         */

        public virtual bool IsEnabled(LogLevel logLevel) => true;
Ejemplo n.º 9
0
 public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel)
 {
     return(true);
 }
Ejemplo n.º 10
0
 public void Log(LogLevel logLevel, string message) => LogArrangeArgs(logLevel, Arg.Any <EventId>(), Arg.Any <Exception>(), message);
Ejemplo n.º 11
0
 public abstract void Log(LogLevel logLevel, EventId eventId, Exception exception, string message);
Ejemplo n.º 12
0
 void ILogger.Log <TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func <TState, Exception, string> formatter)
 {
     Log(logLevel, eventId, exception, formatter(state, exception));
 }
Ejemplo n.º 13
0
 public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) => logLevel >= Microsoft.Extensions.Logging.LogLevel.Debug;
Ejemplo n.º 14
0
 /// <inheritdoc cref="Microsoft.Extensions.Logging.ILogger" />
 /// <summary>
 ///  Checks if the given logLevel is enabled.
 /// </summary>
 /// ///
 /// <param name="logLevel">level to be checked.</param>
 /// <returns>true if enabled.</returns>
 public System.Boolean IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) => logLevel != Microsoft.Extensions.Logging.LogLevel.None;
 public static System.Action <Microsoft.Extensions.Logging.ILogger, T1, T2, System.Exception?> Define <T1, T2>(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions?options)
 {
     throw null;
 }
Ejemplo n.º 16
0
 public void Log <TState>(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, Exception exception, Func <TState, Exception, string> formatter) where TState : LogEntryParameters
 {
     Console.WriteLine($"{logLevel}\t{formatter.Invoke(state, exception)}");
 }
 public LoggerMessageAttribute(int eventId, Microsoft.Extensions.Logging.LogLevel level, string message)
 {
 }
Ejemplo n.º 18
0
 public ContainerEntity(string luss, string hostname, string moduleId, string virtualRtuId, string deviceId, List <Slave> slaves, Microsoft.Extensions.Logging.LogLevel loggingLevel, string instrumentationKey, TimeSpan expiry, string tableName, string connectionString)
 {
     Luss               = luss;
     Hostname           = hostname;
     ModuleId           = moduleId;
     VirtualRtuId       = virtualRtuId;
     DeviceId           = deviceId;
     Slaves             = slaves;
     LoggingLevel       = loggingLevel;
     InstrumentationKey = instrumentationKey;
     table              = tableName;
     cs      = connectionString;
     Created = DateTime.UtcNow;
     Expires = DateTime.UtcNow.Add(expiry);
 }
 public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel)
 {
     throw null;
 }
Ejemplo n.º 20
0
 public static Func <Microsoft.Extensions.Logging.LogLevel, string> GetAdditionalChannelResolver(
     Microsoft.Extensions.Logging.LogLevel minLogLevel,
     string channel)
 {
     return(level => level >= minLogLevel ? channel : null);
 }
        /// <summary>
        /// Is logging enabled for this logger at this <paramref name="logLevel"/>?
        /// </summary>
        /// <param name="logLevel"></param>
        /// <returns></returns>
        public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel)
        {
            var convertLogLevel = ConvertLogLevel(logLevel);

            return(IsEnabled(convertLogLevel));
        }
Ejemplo n.º 22
0
 public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel)
 {
     return(_filter == null || _filter(_categoryName, logLevel));
 }
 void Microsoft.Extensions.Logging.ILogger.Log <TState>(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception exception, System.Func <TState, System.Exception, string> formatter)
 {
 }
Ejemplo n.º 24
0
 internal BlogPostSlugAlreadyExistException(string code = null, string message = null, string details = null, Exception innerException = null, Microsoft.Extensions.Logging.LogLevel logLevel = Microsoft.Extensions.Logging.LogLevel.Warning) : base(code, message, details, innerException, logLevel)
 {
 }
Ejemplo n.º 25
0
 public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter(this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string category, Microsoft.Extensions.Logging.LogLevel level)
 {
     throw null;
 }
Ejemplo n.º 26
0
 public static System.Action <Microsoft.Extensions.Logging.ILogger, T1, T2, T3, T4, T5, T6, System.Exception?> Define <T1, T2, T3, T4, T5, T6>(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, bool skipEnabledCheck)
 {
     throw null;
 }
Ejemplo n.º 27
0
 public Task SendAsync(Microsoft.Extensions.Logging.LogLevel level, DateTime moment, string channel, string sender, string message)
 {
     return(_senders[level].SendAsync(moment, channel, sender, message));
 }
 public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter(this Microsoft.Extensions.Logging.ILoggingBuilder builder, string?category, Microsoft.Extensions.Logging.LogLevel level)
 {
     throw null;
 }
 public static System.Action <Microsoft.Extensions.Logging.ILogger, T1, T2, T3, T4, T5, System.Exception> Define <T1, T2, T3, T4, T5>(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString)
 {
     throw null;
 }
 public static System.Action <Microsoft.Extensions.Logging.ILogger, System.Exception> Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null;