RootLogger Constructor | Apache log4net™ SDK Documentation

Construct a RootLogger

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

C#
VB
C++
F#
Copy

    public RootLogger(
    	Level level
    )

    Public Sub New (
    	level As Level
    )

    public:
    RootLogger(
    	Level^ level
    )

    new :
            level : Level -> RootLogger

#### Parameters

level
  Type: log4net.Core
  Level
  The level to assign to the root logger.

Remarks

Initializes a new instance of the RootLogger class with the specified logging level.

The root logger names itself as "root". However, the root logger cannot be retrieved by name.

See Also

#### Reference

RootLogger Class
log4net.Repository.Hierarchy Namespace