I am planning to replace few different logging mechanism with the only 1. Also I would like to store data not in file, but in DB.
For this purpose I am planning to choose log4net. But looking on the documentation I don't see a way to configure it to use DB as logs storage.
Am I missed something? Could you please point me if there is a way to store data in DB using log4net. And how to do that?
Thanks a lot!
When using a file appender, the destination folder does not have to exist. Log4net creates the folder. Using an administrator account, connect to the Coveo Master server.
You can configure the log4net. config file to create log files. The file is located in the webroot\App_data directory of the installation. The different log files are described in Services logs.
RollingFileAppender can roll log files based on size or date or both depending on the setting of the RollingStyle property. When set to Size the log file will be rolled once its size exceeds the MaximumFileSize.
Is log4net thread-safe? Yes, log4net is thread-safe.
There is a good runthrough here:
How to store log in database using log4net
Also the log4net Config Examples show how to setup the config for most databases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With