如何使用 Microsoft.Extensions.Logging

 

public static void Main(string[] args = null) { 

ILoggerFactory loggerFactory = new LoggerFactory().AddConsole().AddDebug();  

ILogger logger = loggerFactory.CreateLogger<Program>();  

logger.LogInformation(     "This is a test of the emergency broadcast system."); }

详细参考:https://msdn.microsoft.com/magazine/mt694089

相关文章:

  • 2021-06-04
  • 2021-11-24
  • 2022-03-05
  • 2021-11-16
  • 2021-12-13
  • 2019-12-04
  • 2022-02-12
  • 2021-05-29
猜你喜欢
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2022-01-01
  • 2020-05-20
  • 2022-12-23
相关资源
相似解决方案