I'm using log4net to log errors to a SQL Server database. It works ok but there is one problem. The log table in the database contains a column called Exception
this never gets populated but all the other columns do. My config is setup ok, can anyone tell me why this should be happening ?
Here's the commandtext section in my web.config
file
commandText value="INSERT INTO Log ([Date], [Thread], [Level], [Logger],[Message], [Exception]) VALUES (@log_date, @thread, @log_level, @logger, @message, @exception)" />