proudmonkey / ApiBoilerPlate

A simple yet organized project template for building ASP.NET Core APIs in .NET Core 3.1
MIT License
361 stars 77 forks source link

Missing using configuration #12

Closed glennsaint-86 closed 4 years ago

glennsaint-86 commented 4 years ago

Without the using configuration in settings, it would generate logs in both error and info. If there is an error or exception it would info log file and vice versa the info logs would also go to error log file. Adding the using configuration as illustrated in the code would filter the logs properly.

glennsaint-86 commented 4 years ago

Let me check again, Im not quite sure on the sequence I had if I added the serilog.filter.expressions nuget first or I modified the settings first.

But probably you're right, I was updating the existing project that uses the old ApiBoilerTemplate that was still pointing to netcore 3.0, when I upgraded to 3.1, I've update some all the nuget packages to the latest version including the Autowrapper.

proudmonkey commented 4 years ago

@glennsaint-86 were you able to verify this?