Logger Constructor | Apache log4net™ SDK Documentation

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

Namespace: log4net.Repository.Hierarchy
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    protected Logger(
    	string name
    )

    Protected Sub New (
    	name As String
    )

    protected:
    Logger(
    	String^ name
    )

    new :
            name : string -> Logger

#### Parameters

name
  Type: System
  String
  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

#### Reference

Logger Class
log4net.Repository.Hierarchy Namespace