Skip to content

Instantly share code, notes, and snippets.

Last active April 8, 2019 22:32
What would you like to do?
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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment