1
0
mirror of synced 2025-12-22 11:20:57 -05:00
Files
core/release-notes/6.0/api-diff/Asp.Net/6.0.0_Microsoft.Extensions.Logging.md
Rich Lander 8c8e5836c3 Fix linter errors in repo (#9689)
* Fix linter errors

* Update links
2025-01-13 21:40:52 -08:00

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; }
+    }
 }