Skip to content

Instantly share code, notes, and snippets.

Embed
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();
CreateWebHostBuilder(args).Build().Run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.