Skip to content

Instantly share code, notes, and snippets.

@nbxx
Created September 26, 2016 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbxx/7cf67acad086aea3267d3867e77f2b12 to your computer and use it in GitHub Desktop.
Save nbxx/7cf67acad086aea3267d3867e77f2b12 to your computer and use it in GitHub Desktop.
using System;
using Microsoft.Extensions.Logging;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
var logFactory = new LoggerFactory()
.AddConsole(LogLevel.Debug)
.AddDebug();
var logger = logFactory.CreateLogger("");
logger.LogInformation("this is debug log");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment