您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

EfCoreLogProvider.cs 385B

1234567891011121314151617
  1. using Microsoft.Extensions.Logging;
  2. using HealthMonitor.Core.DbLog;
  3. namespace HealthMonitor.WebApi.DbLog
  4. {
  5. public class EfCoreLogProvider : IEfCoreLoggerProvider
  6. {
  7. public static LogLevel LogThisAndAbout { get; set; } = LogLevel.Information;
  8. public ILogger CreateLogger(string categoryName)
  9. {
  10. return new EfCoreLogger(categoryName);
  11. }
  12. public void Dispose() { }
  13. }
  14. }