Closed glennsaint-86 closed 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.
@glennsaint-86 were you able to verify this?
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.