It's quite simple, you just need to replace the appender connectionString
configuration.
In place of the connection string:
<connectionString value="[Complete Connection]" />
You just use the connectionStringName
configuration:
<connectionStringName value="ApplicationConnection" />
And then you have your application connection string:
<connectionStrings>
<add name="ApplicationConnection" connectionString="Connection" providerName="System.Data.OracleClient" />
</connectionStrings>
Unfortunately you must have the connectionType
with the connectionStringName, example:
<appender name="AdoNetAppender_Oracle" type="log4net.Appender.AdoNetAppender">
<connectionType value="System.Data.OracleClient.OracleConnection, System.Data.OracleClient, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<connectionStringName value="ApplicationConnection" />
...