Nicko,

Thank you for responding. I am subscribing to the proper list on apache, and I am also going to install the latest version of log4net. When you say "place all the assemblies within the same logging repository(AKA domain)", are you saying that I need to create one logger for all the assemblies (instead of using typeOf(ClassName) I should using "MyAssembleLogger" ?

Regards,

Ray Simpson


Subject: [Log4net-users] Domains of other object types not showing up..

I am using log4net in my web application. It loads the config fine, and generates log entries for the main web application, but my supporting libraries all have log statements in them that are not showing up. I read about setting up loggers for certain domains with in your application, but I have a lot of libraries and what I really want is a solution to add into my config file that will put ALL the items into one big log file. This worked in 1.1.1 but I started having issues and I moved to the 1.2.5 beta which seemed to fix a lot of problems, but now this is happening. Included is my web config and all the error messages I get (running log4net in debug mode):

  <log4net debug="true">

<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
                <param name="File" value="C:\\Import\\LogFile.txt" />
                <param name="AppendToFile" value="true" />
                <param name="RollingStyle" value="Date" />
                <param name="DatePattern" value="yyyyMMdd" />
                <param name="StaticLogFileName" value="true" />
                        <layout type="log4net.Layout.PatternLayout">
                                <param name="ConversionPattern" value="%d [%t] %-5p %c 
[%x] - %m%n" />
                        </layout>
        </appender>

<!-- Setup the root category, add the appenders and set the default level -->

        <root>
                <priority value="DEBUG" />
                <appender-ref ref="RollingLogFileAppender" />
        </root>
</log4net>
log4net: DefaultRepositorySelector: Creating repository for assembly [ReanneCorp.Common.Security.AccessControl, Version=1.0.2000.26723, Culture=neutral, PublicKeyToken=null] log4net: DefaultRepositorySelector: Assembly [ReanneCorp.Common.Security.AccessControl, Version=1.0.2000.26723, Culture=neutral, PublicKeyToken=null] does not have a DomainAttribute specified log4net: DefaultRepositorySelector: Assembly [ReanneCorp.Common.Security.AccessControl, Version=1.0.2000.26723, Culture=neutral, PublicKeyToken=null] using domain [ReanneCorp.Common.Security.AccessControl] and repository type [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: Creating repository for domain [ReanneCorp.Common.Security.AccessControl] using type [log4net.Repository.Hierarchy.Hierarchy] log4net:ERROR Logger: No appenders could be found for logger [ReanneCorp.Common.Security.AccessControl.DAO.ACUserDAO]
log4net:ERROR Logger: Please initialize the log4net system properly.
log4net: DefaultRepositorySelector: Creating repository for assembly [ReanneCorp.Library.IDWeb, Version=1.0.2000.26789, Culture=neutral, PublicKeyToken=null] log4net: DefaultRepositorySelector: Assembly [ReanneCorp.Library.IDWeb, Version=1.0.2000.26789, Culture=neutral, PublicKeyToken=null] does not have a DomainAttribute specified log4net: DefaultRepositorySelector: Assembly [ReanneCorp.Library.IDWeb, Version=1.0.2000.26789, Culture=neutral, PublicKeyToken=null] using domain [ReanneCorp.Library.IDWeb] and repository type [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: Creating repository for domain [ReanneCorp.Library.IDWeb] using type [log4net.Repository.Hierarchy.Hierarchy] log4net:ERROR Logger: No appenders could be found for logger [ReanneCorp.Library.IDWeb.Messages.DAO.PatronMessageDAO]
log4net:ERROR Logger: Please initialize the log4net system properly.
'/LM/W3SVC/1/Root/IDWeb-15-127640659445312500': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\idweb\1f9eed4a\d5aac827\ftbuswvl.dll', Symbols loaded. '/LM/W3SVC/1/Root/IDWeb-15-127640659445312500': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\idweb\1f9eed4a\d5aac827\xej6d3wy.dll', Symbols loaded. '/LM/W3SVC/1/Root/IDWeb-15-127640659445312500': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\idweb\1f9eed4a\d5aac827\jeiz9m2z.dll', Symbols loaded. '/LM/W3SVC/1/Root/IDWeb-15-127640659445312500': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\idweb\1f9eed4a\d5aac827\d0-8yp2i.dll', Symbols loaded. log4net: DefaultRepositorySelector: Creating repository for assembly [ReanneCorp.Library.Demographics, Version=1.0.2000.26251, Culture=neutral, PublicKeyToken=null] log4net: DefaultRepositorySelector: Assembly [ReanneCorp.Library.Demographics, Version=1.0.2000.26251, Culture=neutral, PublicKeyToken=null] does not have a DomainAttribute specified log4net: DefaultRepositorySelector: Assembly [ReanneCorp.Library.Demographics, Version=1.0.2000.26251, Culture=neutral, PublicKeyToken=null] using domain [ReanneCorp.Library.Demographics] and repository type [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: Creating repository for domain [ReanneCorp.Library.Demographics] using type [log4net.Repository.Hierarchy.Hierarchy] log4net:ERROR Logger: No appenders could be found for logger [ReanneCorp.Library.Demographics.DAO.PersonDAO]
log4net:ERROR Logger: Please initialize the log4net system properly.

Any help would be greatly appreciated.

Regards,

Ray Simpson


Reply via email to