Last active
April 8, 2019 22:32
-
-
Save tugberkugurlu/8972ab109642de43d4b92c229cadb2cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Logging; | |
+using PostSharp.Patterns.Diagnostics; | |
+using PostSharp.Patterns.Diagnostics.Backends.Console; | |
namespace _1_sample_web | |
{ | |
+ [Log(AttributeExclude = true)] | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
+ LoggingServices.DefaultBackend = new ConsoleLoggingBackend(); | |
CreateWebHostBuilder(args).Build().Run(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment