Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

log4net AdoNetAppender in .Net core 2.0 not supported?

I'm implementing log4net AdoNetAppender in asp.net core 2.0, but I guess it is not supporting. I have implemented log4net RollingFileAppender in core 2.0 & it worked successfully using log4.net config. So, if log4net AdoNetAppender is not supporting in core 2.0, is there any other way to insert logs to sql database in core 2.0?

Thank you

like image 314
Vishal G Avatar asked Oct 10 '17 15:10

Vishal G


1 Answers

I faced the same issue and solved using this nuget package in .net core solution

https://www.nuget.org/packages/MicroKnights.Log4NetAdoNetAppender

You can find more information about how to set this up on

https://github.com/microknights/Log4NetAdoNetAppender

Other option could be referring to the implementation in https://svn.apache.org/repos/asf/logging/log4net/tags/log4net-1_2_9/src/Appender/AdoNetAppender.cs

like image 158
prashant Avatar answered Nov 10 '22 12:11

prashant