I am working on log4net for the first time and I got it to working. But some of the fields iin the database where I am logging are empty. I want to make use of those. For example FileName (db column) is (null). And I have its parameter set up in config file like this
<parameter>
<parameterName value="@filename" />
<dbType value="String" />
<size value="200" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%X{cFileName}" />
</layout>
</parameter>
I want to use this above parameter with a dynamic value sent from the asp.net code. And I see this below part as an appender and I am not really sure what this is for. Please suggest. Thanks in advance!!
<conversionPattern value="%d [%t] %-5level %logger%nCustom Message: %X{cMessage}%nSystem Message: %m%n" />