Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

DomainAttribute Class

NOTE: This class is now obsolete.

Use RepositoryAttribute instead of DomainAttribute


Assembly level attribute that specifies the logging domain for the assembly.

For a list of all members of this type, see DomainAttribute Members.

System.Object
���System.Attribute
������log4net.Config.RepositoryAttribute
���������log4net.Config.DomainAttribute

[Visual�Basic]
NotInheritable�Public�Class�DomainAttribute
����Inherits�RepositoryAttribute
[C#]
public�sealed�class�DomainAttribute : RepositoryAttribute

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

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.

Requirements

Namespace: log4net.Config

Assembly: log4net (in log4net.dll)

See Also

DomainAttribute Members | log4net.Config Namespace