According to this page:

http://tinyurl.com/dqhnj
http://logging.apache.org/log4net/release/sdk/log4net.Appender.AdoNetAppender.ConnectionString.html

There is a public property named ConnectionString on AdoNetAppender
objects.

If you're wanting to define the appender via the xml config file and
set one or more properties at run-time (i.e. set the File property of
the FileAppneder or the ConnectionString property of the AdoNetAppender
when the code is initialized), I would extend the Appender and override
the property setters. Your new xml config file might look soething like
this:

<appender name="FileAppender" type="CompayName.Appender.FileAppender">
 <appendToFile="false" />
 <!-- file property will be set in code -->
</appender>

--- vicky <[EMAIL PROTECTED]> wrote:

> hi,
> 
> Please tell me how can we pass the parameters like log filename for a
> log4net 
> file Appender through Code.
> Same i have problem in case of ADONetAppender like Connection String.
> 
> Thanks & regards
> Vicky
> 
> 

Reply via email to