DomainAttribute ClassApache log4net™ SDK Documentation
Assembly level attribute that specifies the logging domain for the assembly.
Inheritance Hierarchy

OnlineSystem Object
  OnlineSystem Attribute
    log4net.Config RepositoryAttribute
      log4net.Config DomainAttribute

Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

[SerializableAttribute]
[ObsoleteAttribute("Use RepositoryAttribute instead of DomainAttribute")]
public sealed class DomainAttribute : RepositoryAttribute
Remarks

DomainAttribute is obsolete. Use RepositoryAttribute instead of DomainAttribute.

Assemblies are mapped to logging domains. Each domain has its own logging repository. This attribute specified on the assembly controls the configuration of the domain. The Name property specifies the name of the domain that this assembly is a part of. The RepositoryType specifies the type of the repository objects to create for the domain. If this attribute is not specified and a Name is not specified then the assembly will be part of the default shared logging domain.

This attribute can only be specified on the assembly and may only be used once per assembly.

See Also