Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public HomeController(ILogger<HomeController> logger)
- {
- _logger = logger;
- }
- public IActionResult Index()
- {
- _logger.LogInformation("=========================================");
- _logger.LogError("=========================================");
- return View();
- }
- {
- "Logging": {
- "LogLevel": {
- "Default": "Debug",
- "System": "Error",
- "Microsoft": "Error"
- }
- }
- }
- public class Program
- {
- public static void Main(string[] args)
- {
- CreateWebHostBuilder(args).Build().Run();
- }
- public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
- WebHost.CreateDefaultBuilder(args)
- .UseStartup<Startup>();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement