Subscribe Us

How to use NLog in core 3.1 with complete example

IntroductionIn this article I am going to explain How to user NLog in core 3.1 with complete example.

Description: I am creating core project and use  nuget packet to implement nlog.


Step1- Add below package to project from nuget library.

Step2- Add nlog.config file

Step3 - Replace content with below mentioned content 

Step4 - Replace program file content with mentioned content

Step5 - Add code in controller

  Result: Below is the result


Post a Comment