BEFORE any namespace:
[assembly:
log4net.Config.DOMConfigurator(ConfigFileExtension="log4net")]
Using your filename (below) log4net will then obtain
it's config info from autoraw.exe.log4net
As an alternative, add the following directive:
[assembly: log4net.Config.AliasDomain("autoraw")]
This tells log4net to look in your config file. BTW -
This is all from the example code included with the
distribution...
Barry
--- David Anderson <[EMAIL PROTECTED]> wrote:
> Barry Burton wrote:
>
> >File->New
> >scroll down to bottom
> >add app.config file type
> >add in whatever config info you need
> >VS will automatically generate the correct file
> >
> >
> >
> Yes!!!!! That works - no more deleted config file.
> Thank you!
> But.....
>
> So how do I then use this config file? I have been
> trying:
> Dim filename As String =
> AppDomain.CurrentDomain.BaseDirectory &
> "autoraw.exe.config"
> log4net.Config.DOMConfigurator.Configure(New
> IO.FileInfo(filename))
> but can I replace "autoraw.exe.config" with ageneric
> string?
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com