Class org.as2lib.env.log.logger.RootLogger

org.as2lib.core.BasicClass
   +--org.as2lib.env.log.logger.AbstractLogger
      +--org.as2lib.env.log.logger.SimpleHierarchicalLogger
         +--org.as2lib.env.log.logger.RootLogger

Description

RootLogger represents the root in a logger hierarchy.

The name of a root logger is by default "root".

You must set a log level because otherwise the level in the hierarchy could be null which could cause unexpected behavior.

This class is normally used in conjunction with the LoggerHierarchy.

Field Index

Inherited from AbstractLogger

ALL, DEBUG, ERROR, FATAL, INFO, NONE, WARNING

Method Index

new RootLogger()

setLevel()

Inherited from SimpleHierarchicalLogger

addHandler(), debug(), error(), fatal(), getAllHandlers(), getLevel(), getName(), getParent(), info(), isDebugEnabled(), isEnabled(), isErrorEnabled(), isFatalEnabled(), isInfoEnabled(), isWarningEnabled(), log(), removeAllHandlers(), removeHandler(), setName(), setParent(), warning()

Inherited from BasicClass

toString()

Constructor Detail

RootLogger

public function RootLogger(level:LogLevel)

Constructs a new RootLogger instance.

The name is automatically set to "root".

Parameters

levelthe level of this logger

Throws

IllegalArgumentExceptionif the passed-in level is null or undefined

Method Detail

setLevel

public function setLevel(level:LogLevel):Void

Sets the level of this logger.

A level of value null or undefined is not allowed.

Parameters

levelthe new level of this logger

Throws

IllegalArgumentExceptionwhen level is null or undefined

Specified By

setLevel() in org.as2lib.env.log.ConfigurableLogger

Overrides

setLevel() in org.as2lib.env.log.logger.SimpleHierarchicalLogger