log4net SDK Reference |

# Logger Constructor

This constructor created a new Logger instance and sets its name.

[Visual Basic]
Protected Sub New( _
ByVal name As String _
)
[C#]
protected Logger(
string name
);

#### Parameters

name
  The name of the Logger.

#### Remarks

This constructor is protected and designed to be used by a subclass that is not abstract.

Loggers are constructed by ILoggerFactory objects. See DefaultLoggerFactory for the default logger creator.

#### See Also

Logger Class | log4net.Repository.Hierarchy Namespace