The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LoggerExtensions.cs 435B

1234567891011121314151617
  1. using Microsoft.Extensions.Logging;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using Teknik.Configuration;
  6. namespace Teknik.Logging
  7. {
  8. public static class LoggerExtensions
  9. {
  10. public static ILoggerFactory AddLogger(this ILoggerFactory loggerFactory, Config config)
  11. {
  12. loggerFactory.AddProvider(new LoggerProvider(config));
  13. return loggerFactory;
  14. }
  15. }
  16. }