i have two exes in my solution that are run simultaeneously. each exe has a log4net.xml file with a AdoNetAppender in it: <appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender"> <bufferSize value="100" /> <connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <connectionString value="data source=[database server];initial catalog=[database name];integrated security=false;persist security info=True;User ID=[user];Password=[password]" /> <commandText value="INSERT INTO Log ([Date],[Thread],[Level],[Logger],[Message],[Exception]) VALUES (@log_date, @thread, @log_level, @logger, @message, @exception)" /> <parameter>
is there any way to move the value of the connectionstring to a common file and just reference it by name? would it be possible to move the appenders to one common location as well? i want to do it using a config file and not programmatically. thanks. -- View this message in context: http://old.nabble.com/log4net-AdoNetAppender-common-connectionstring-value-tp33244792p33244792.html Sent from the Log4net - Users mailing list archive at Nabble.com.