LogManager CreateDomain Method (String, Type)Apache log4net™ SDK Documentation
Creates a repository with the specified name and repository type.

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

[ObsoleteAttribute("Use CreateRepository instead of CreateDomain")]
public static ILoggerRepository CreateDomain(
	string repository,
	Type repositoryType
)

Parameters

repository
Type: OnlineSystem String
The name of the repository, this must be unique to the repository.
repositoryType
Type: OnlineSystem Type
A OnlineType that implements ILoggerRepository and has a no arg constructor. An instance of this type will be created to act as the ILoggerRepository for the repository specified.

Return Value

Type: ILoggerRepository
The ILoggerRepository created for the repository.
Exceptions

Remarks

CreateDomain is obsolete. Use CreateRepository instead of CreateDomain.

The repository name must be unique. Repositories cannot be redefined. An OnlineException will be thrown if the repository already exists.

See Also