Join NLog
According to the official website of the document https://github.com/NLog/NLog/wiki/Getting-started-with-ASP.NET-Core-2
Down step by step operation, can be set up.
Set reference configuration file
http://www.makaidong.com/%E5%8D%9A%E5%AE%A2%E5%9B%AD%E5%8D%9A%E6%96%87/20150927/110956.html