Interface org.as2lib.env.log.HierarchicalLogger

org.as2lib.core.BasicInterface
   +--org.as2lib.env.log.Logger
      +--org.as2lib.env.log.HierarchicalLogger

Description

HierarchicalLogger is implemented to enable to logger to take part in a hierarchy.

This functionality is needed by the LoggerHierarchy, a repository that stores loggers hierarchical.

Method Index

getAllHandlers(), getLevel(), getName(), getParent()

Inherited from Logger

debug(), error(), fatal(), info(), isDebugEnabled(), isErrorEnabled(), isFatalEnabled(), isInfoEnabled(), isWarningEnabled(), warning()

Inherited from BasicInterface

toString()

Method Detail

getParent

public function getParent(Void):HierarchicalLogger

Returns the parent of this logger.

This logger normally uses the parent to get the log level, if no one has been set to this logger manually and to get the handlers of its parents to write the log messages.

Return

the parent of this logger

getName

public function getName(Void):String

Returns the name of this logger.

The name is fully qualified and the different parts must be separated by periods or other characters depending on the usage. The name could for example be "org.as2lib.core.BasicClass".

Return

the name of this logger

getLevel

public function getLevel(Void):LogLevel

Returns the level of this or the one of the parent logger.

Return

the level of this or the one of the parent logger.

getAllHandlers

public function getAllHandlers(Void):Array

Returns all handlers this logger broadcasts to when logging a message.

These handlers are the once directly added to this logger and the once of the parents.

Return

all added log handlers and the ones of the parents