25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
647 B

  1. using Microsoft.AspNetCore;
  2. using Microsoft.AspNetCore.Hosting;
  3. using NLog.Web;
  4. namespace Sample.Kafka.MySql
  5. {
  6. public class Program
  7. {
  8. public static void Main(string[] args)
  9. {
  10. BuildWebHost(args).Run();
  11. }
  12. public static IWebHost BuildWebHost(string[] args) =>
  13. WebHost.CreateDefaultBuilder(args)
  14. .UseStartup<Startup>()
  15. .ConfigureLogging((hostingContext, builder) =>
  16. {
  17. hostingContext.HostingEnvironment.ConfigureNLog("nlog.config");
  18. })
  19. .UseNLog()
  20. .Build();
  21. }
  22. }