I am using adonet appender of log4net for database debugging. Logging level is set to error. Database logging is configured for two applications running on different servers writting to same table on Oracle database.The columns of table were loginId, level.The
problems I am facing are:
1. Even the logging level is set to error, some info level statements were also shown in the table , and the corresponing level column is being shown as error.
2. login is shown wrong.
3. So, how to configure log4net on different servers to behave autonomously.
I am facing these problems when multiple instances of an application are run at same time. I published the code and runned the application with url. The logging data is getting jumbled into other rows. For eg, I browsed the application url in a particular
flow 'A' with my login id and my friend browsed in a differnt flow 'B' with different login id. But my login id is been shown for my friend's flow B and wicewersa.
Member
4 Points
14 Posts
Log4net database logging showing wrong data.
Jul 09, 2011 08:08 PM|rebelrajesh|LINK
I am using adonet appender of log4net for database debugging. Logging level is set to error. Database logging is configured for two applications running on different servers writting to same table on Oracle database.The columns of table were loginId, level.The problems I am facing are:
1. Even the logging level is set to error, some info level statements were also shown in the table , and the corresponing level column is being shown as error.
2. login is shown wrong.
3. So, how to configure log4net on different servers to behave autonomously.
Contributor
6472 Points
1575 Posts
Re: Log4net database logging showing wrong data.
Jul 10, 2011 01:59 AM|princeG|LINK
How to use: Check here
http://sadi02.wordpress.com/2008/09/15/how-to-store-log-in-database-using-log4net/
http://forums.asp.net/t/1610661.aspx/1
http://www.codeproject.com/KB/dotnet/LoggingWithNHibernate.aspx
Member
4 Points
14 Posts
Re: Log4net database logging showing wrong data.
Jul 10, 2011 05:01 PM|rebelrajesh|LINK
I am facing these problems when multiple instances of an application are run at same time. I published the code and runned the application with url. The logging data is getting jumbled into other rows. For eg, I browsed the application url in a particular flow 'A' with my login id and my friend browsed in a differnt flow 'B' with different login id. But my login id is been shown for my friend's flow B and wicewersa.