Here is the debug output from log4net: -Pawan
log4net: log4net assembly [log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905]. Loaded from [c:\pawan\logging\windowsapplication1\bin\log4net.dll]. (.NET Runtime [1.1.4322.573] on Microsoft Windows NT 5.1.2600.0) log4net: DefaultRepositorySelector: defaultRepositoryType [log4net.Repository.Hierarchy.Hierarchy] log4net: log4net assembly [log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905]. Loaded from [c:\pawan\logging\windowsapplication1\bin\log4net.dll]. (.NET Runtime [1.1.4322.573] on Microsoft Windows NT 5.1.2600.0) log4net: DefaultRepositorySelector: defaultRepositoryType [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: Creating repository for assembly [WindowsApplication1, Version=1.0.1698.22579, Culture=neutral, PublicKeyToken=null] log4net: DefaultRepositorySelector: Assembly [WindowsApplication1, Version=1.0.1698.22579, Culture=neutral, PublicKeyToken=null] Loaded >From [C:\pawan\Logging\WindowsApplication1\bin\WindowsApplication1.exe] log4net: DefaultRepositorySelector: Assembly [WindowsApplication1, Version=1.0.1698.22579, Culture=neutral, PublicKeyToken=null] does not have a DomainAttribute specified. log4net: DefaultRepositorySelector: Assembly [WindowsApplication1, Version=1.0.1698.22579, Culture=neutral, PublicKeyToken=null] using domain [log4net-default-domain] and repository type [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: Creating repository for domain [log4net-default-domain] using type [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: Creating repository for assembly [WindowsApplication1, Version=1.0.1698.22579, Culture=neutral, PublicKeyToken=null] log4net: DefaultRepositorySelector: Assembly [WindowsApplication1, Version=1.0.1698.22579, Culture=neutral, PublicKeyToken=null] Loaded >From [C:\pawan\Logging\WindowsApplication1\bin\WindowsApplication1.exe] log4net: DefaultRepositorySelector: Assembly [WindowsApplication1, Version=1.0.1698.22579, Culture=neutral, PublicKeyToken=null] does not have a DomainAttribute specified. log4net: DefaultRepositorySelector: Assembly [WindowsApplication1, Version=1.0.1698.22579, Culture=neutral, PublicKeyToken=null] using domain [log4net-default-domain] and repository type [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: Creating repository for domain [log4net-default-domain] using type [log4net.Repository.Hierarchy.Hierarchy] 'WindowsApplication1.exe': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\sys tem.drawing.dll', No symbols loaded. log4net: DOMConfigurator: configuring repository [log4net-default-domain] using .config file section log4net: DOMConfigurator: configuring repository [log4net-default-domain] using .config file section log4net: DOMConfigurator: Application config file is [C:\pawan\Logging\WindowsApplication1\bin\WindowsApplication1.exe.config ] log4net:ERROR DOMConfigurator: ConfigureFromXML called with null 'element' parameter log4net: DOMConfigurator: Application config file is [C:\pawan\Logging\WindowsApplication1\bin\WindowsApplication1.exe.config ] log4net:ERROR DOMConfigurator: ConfigureFromXML called with null 'element' parameter -----Original Message----- From: Nicko Cadell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 1:22 PM To: Log4NET User Subject: RE: App.config file is causing errors in 1.2.8 It looks like it is failing before it finds the configuration xml. How are you telling log4net where the configuration is? What type of programme are you writing? (console app/windows app/asp.net) Can you include the whole of the log4net debug output (i.e. all the log4net:* stuff). Thanks, Nicko > -----Original Message----- > From: Pawan Singh [mailto:[EMAIL PROTECTED] > Sent: 25 August 2004 21:14 > To: Log4NET User > Subject: RE: App.config file is causing errors in 1.2.8 > > Even if the config file is empty, I get the same error. Is > this a problem in Beta 8? > > Thanks > Pawan > > <?xml version="1.0" encoding="utf-8" ?> > <configuration> > > <configSections> > <section name="log4net" > type="System.Configuration.IgnoreSectionHandler" /> > </configSections> > > <appSettings> > <!-- To enable internal log4net logging specify > the following appSettings key --> > <add key="log4net.Internal.Debug" value="true"/> > </appSettings> > > <!-- This section contains the log4net configuration settings > --> > <log4net> > </log4net> > </configuration> > > > -----Original Message----- > From: Pawan Singh [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 25, 2004 11:45 AM > To: [email protected] > Subject: App.config file is causing errors in 1.2.8 > > Hi, > > I am using the log4net 1.2 beta 8 for .Net 1.1. The example > config file in the distribution for vb.net does not work - so > I took elements from the Java version. Now all the > configuration stuff is read, but DOMConfigurator prints an error. > log4net:ERROR DOMConfigurator: ConfigureFromXML called with > null 'element' parameter log4net:ERROR DOMConfigurator: > ConfigureFromXML called with null 'element' parameter > > Here is my simple app.config file: > > <?xml version="1.0" encoding="utf-8" ?> > <configuration> > > <configSections> > <section name="log4net" > type="System.Configuration.IgnoreSectionHandler" /> > </configSections> > > <appSettings> > <!-- To enable internal log4net logging specify > the following appSettings key --> > <add key="log4net.Internal.Debug" value="true"/> > </appSettings> > > <!-- This section contains the log4net configuration settings > --> > <log4net> > > <appender name="ConsoleAppender" > type="log4net.Appender.ConsoleAppender"> > <layout type="log4net.Layout.PatternLayout"> > <param name="ConversionPattern" > value="%d [%t] %-5p %c [%x] <%X{auth}> - %m%n" /> > </layout> > </appender> > > <!-- Setup the root category, add the appenders > and set the default level --> > <root> > <level value="ALL" /> > <appender-ref ref="ConsoleAppender" /> > <!-- <appender-ref ref="A" /> --> > </root> > > <!-- Specify the level for some specific categories --> > <logger name="WindowsApplication1.Form1"> > <!-- <appender-ref ref="B" /> --> > <level value="ALL" /> > <appender-ref ref="ConsoleAppender" /> > </logger> > > > </log4net> > </configuration> > > > > > >
