David, If you do need the path to the .config file for your AppDomain you can use:
System.AppDomain.CurrentDomain.SetupInformation.ConfigurationFile But you can just specify the log4net assembly level attribute: [assembly:log4net.Config.DOMConfigurator()] Which will instruct log4net to load the configuration from the .config file. Have a look at the example in the log4net download for more info. The path in the ZIP is: examples\net\1.0\Tutorials\ConsoleApp\cs\src Nicko > -----Original Message----- > From: David Anderson [mailto:[EMAIL PROTECTED] > Sent: 31 July 2004 21:15 > To: Log4NET User > Subject: Re: Strange behaviour > > 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? > >
