配置NLog
This commit is contained in:
		
							parent
							
								
									7e738b65a9
								
							
						
					
					
						commit
						23a86dc534
					
				@ -1,11 +1,6 @@
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using Microsoft.AspNetCore.Hosting;
 | 
			
		||||
using Microsoft.Extensions.Configuration;
 | 
			
		||||
using Microsoft.Extensions.Hosting;
 | 
			
		||||
using Microsoft.Extensions.Logging;
 | 
			
		||||
using NLog.Web;
 | 
			
		||||
 | 
			
		||||
namespace StaffManagement
 | 
			
		||||
{
 | 
			
		||||
@ -19,6 +14,7 @@ namespace StaffManagement
 | 
			
		||||
            Host.CreateDefaultBuilder(args)
 | 
			
		||||
                .ConfigureWebHostDefaults(webBuilder => {
 | 
			
		||||
                    webBuilder.UseStartup<Startup>();
 | 
			
		||||
                });
 | 
			
		||||
                })
 | 
			
		||||
                .UseNLog();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user