Based previous experience and research, I implemented logging at the workplace using log4Net.
However, there was general preference to use a custom logger when log4net was presented in our development meetings. The reason was in order to use the generated code from Telerik's ORM instead of specifying the insert query in the configuration file.
<appender name="ADONetAppender" type="log4net.Appender.AdoNetAppender">
<bufferSize value="1"/>
<connectionType value="MySql.Data.MySqlClient.MySqlConnection, MySql.Data" />
<connectionStringName value="Test"/>
<commandText value="INSERT INTO Log (UniqueId,Date,UserId,Thread,level,Logger,Message,Exception) VALUES (UUID(),?log_date,?userid,?thread,?log_level,?logger,?message,?exception)" />
...
What is your advice? Can we create a custom appender for this purpose? Should we go for the custom logger?
For information, there are positive and negative views on custom loggers here.
Thanks