org.as2lib.core.BasicClass +--org.as2lib.env.log.logger.AbstractLogger +--org.as2lib.env.log.logger.SimpleHierarchicalLogger +--org.as2lib.env.log.logger.RootLogger
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.
new RootLogger()
addHandler(), debug(), error(), fatal(), getAllHandlers(), getLevel(), getName(), getParent(), info(), isDebugEnabled(), isEnabled(), isErrorEnabled(), isFatalEnabled(), isInfoEnabled(), isWarningEnabled(), log(), removeAllHandlers(), removeHandler(), setName(), setParent(), warning()
public function RootLogger(level:LogLevel)
Constructs a new RootLogger
instance.
The name is automatically set to "root"
.
level | the level of this logger |
IllegalArgumentException | if the passed-in level is null
or undefined
|
public function setLevel(level:LogLevel):Void
Sets the level of this logger.
A level of value null
or undefined
is not allowed.
level | the new level of this logger |
IllegalArgumentException | when level is null or
undefined
|
setLevel() in org.as2lib.env.log.ConfigurableLogger
setLevel() in org.as2lib.env.log.logger.SimpleHierarchicalLogger