I am currently looking for some code or a tool/service that allows me to store Log4Net Messages in a SQL Server database. Does something like this already exist or would I have to implement this on my own? I couldn't find anything on SO or Google.
Thanks in advance for any information.
2条答案
按热度按时间qlvxas9a1#
You can learn about this in the manual
Also a good blog about problems using log4net with logs saved in a database.
v09wglhw2#
What messes with everyone is **copy/paste without knowing the details.**Example:
<bufferSize value="100" />
That means that it WILL NOT log to database table until it hits 100 entries in the buffer to write to the db table.For testing/debug set buffer to 1
Notice Window Authentication along with
.
for localNext you will use app.config or web.config "root" to have it called