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;
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; }
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) { }
/* * { * Log(logLevel, eventId, message); * Log(logLevel, exception, message); * Log(logLevel, message); * } */ public virtual bool IsEnabled(LogLevel logLevel) => true;
public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) { return(true); }
public void Log(LogLevel logLevel, string message) => LogArrangeArgs(logLevel, Arg.Any <EventId>(), Arg.Any <Exception>(), message);
public abstract void Log(LogLevel logLevel, EventId eventId, Exception exception, string message);
void ILogger.Log <TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func <TState, Exception, string> formatter) { Log(logLevel, eventId, exception, formatter(state, exception)); }
public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) => logLevel >= Microsoft.Extensions.Logging.LogLevel.Debug;
/// <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; }
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) { }
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; }
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)); }
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) { }
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) { }
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter(this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string category, Microsoft.Extensions.Logging.LogLevel level) { throw null; }
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; }
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;