1.9 KiB
1.9 KiB
Microsoft.Extensions.Logging
namespace Microsoft.Extensions.Logging {
public enum ActivityTrackingOptions {
+ Baggage = 64,
+ Tags = 32,
}
+ public class LogDefineOptions {
+ public LogDefineOptions();
+ public bool SkipEnabledCheck { get; set; }
+ }
public static class LoggerMessage {
+ public static Action<ILogger, Exception> Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options);
+ public static Action<ILogger, T1, T2, T3, T4, T5, T6, Exception> Define<T1, T2, T3, T4, T5, T6>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options);
+ public static Action<ILogger, T1, T2, T3, T4, T5, Exception> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options);
+ public static Action<ILogger, T1, T2, T3, T4, Exception> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options);
+ public static Action<ILogger, T1, T2, T3, Exception> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options);
+ public static Action<ILogger, T1, T2, Exception> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options);
+ public static Action<ILogger, T1, Exception> Define<T1>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options);
}
+ public sealed class LoggerMessageAttribute : Attribute {
+ public LoggerMessageAttribute();
+ public LoggerMessageAttribute(int eventId, LogLevel level, string message);
+ public int EventId { get; set; }
+ public string EventName { get; set; }
+ public LogLevel Level { get; set; }
+ public string Message { get; set; }
+ public bool SkipEnabledCheck { get; set; }
+ }
}