Click here to Skip to main content
15,868,053 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I am trying to log the error in database using log4Net in Asp.Net Core 2.0 but it seems that log4Net is not fully supportable till now.

I have checked it on official site(log4net[^]) too.

What I have tried:

Log4net for .Net Core 2.0 – Rizk Hanna[^]

I have tried above link and its writing the log in database table but its complex and need to write too much code.

Like in MVC5, we dont have to write code and its the only the matter of configurations and writing 2-3 lines of code. Any help would be appreciated.
Posted
Comments
[no name] 18-Aug-18 13:24pm    
You haven't seen code if you think this is "too much code".

It is what it is.
Adityakumar2318 19-Aug-18 2:26am    
So do you think that code is fine and it can be use in enterprise level application?
My concern was only that due to more code, it will take little more time to log the error. If code is more, then it will take more time to compile and so on.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900