Rich, There is a mapping from Assembly instance to domain. If the Assembly has a DomainAttribute then it will be to that domain, otherwise it will be to the default domain. The LogManager.GetLogger(string) method passes Assembly.GetCallingAssembly() to the LoggerManager.GetLogger(Assembly,string) method. This allows the LoggerManager to lookup the correct domain based on the originating assembly. If you are calling LoggerManager.GetLogger directly you will need to either pass the name of the domain or the calling assembly instance.
The name of the default domain is 'log4net-default-domain'. This is defined by a const at the bottom of the DefaultRepositorySelector. Nicko > -----Original Message----- > From: Denis, Rich [mailto:[EMAIL PROTECTED] > Sent: 07 June 2004 05:24 > To: Log4NET User > Subject: Repositories/Domains > > I was developing a component library that I thought I would > create its own repository for. I have added the necessary > Domain attribute to create it. What I want to know is if I > call LogManager.GetLogger(<LoggerName>) does the fact that > the Logger is getting created in the context of the assembly > that I specified another repository for mean that it will get > created in that "Domain" or do I need to call > > LogManager.GetLogger(<domain>, <loggerName>); > > > > What is the name of the default domain? In other words if I > wanted to explicitly get a logger from the manager using the > domain name of the default domain what would that name be > "default"?, "root"?... Thanks. > > > > Rich > >
