org.x4juli
Class ClassLoaderLogManager.LogNode

java.lang.Object
  extended byorg.x4juli.ClassLoaderLogManager.LogNode
Enclosing class:
ClassLoaderLogManager

protected static final class ClassLoaderLogManager.LogNode
extends java.lang.Object

A LogNode represents one step in a namespace of Loggers. In example org.x4juli.sample has three steps (org, juli, and sample). LogNode represents one of them.

Since:
0.6
Author:
Boris Unckel

Field Summary
(package private)  java.util.Map children
           
(package private)  java.util.logging.Logger logger
           
(package private)  ClassLoaderLogManager.LogNode parent
           
 
Constructor Summary
(package private) ClassLoaderLogManager.LogNode(ClassLoaderLogManager.LogNode parent)
          Constructor for LogNodes without Logger.
(package private) ClassLoaderLogManager.LogNode(ClassLoaderLogManager.LogNode parent, java.util.logging.Logger logger)
          Constructor.
 
Method Summary
(package private)  ClassLoaderLogManager.LogNode findNode(java.lang.String name)
          Searches for a special logNode.
(package private)  java.util.logging.Logger findParentLogger()
          Searches for the parent logger in the LogNode tree.
(package private)  void printTree(java.lang.String prefix, ClassLoaderLogManager.LogNode node)
          Prints directly information about the current LogNode tree to System.out.
(package private)  void setParentLogger(java.util.logging.Logger parentLogger)
          Sets the parent where adaquate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

java.util.logging.Logger logger

children

final java.util.Map children

parent

final ClassLoaderLogManager.LogNode parent
Constructor Detail

ClassLoaderLogManager.LogNode

ClassLoaderLogManager.LogNode(ClassLoaderLogManager.LogNode parent,
                              java.util.logging.Logger logger)
Constructor.

Parameters:
parent - of the new LogNode.
logger - contained logger.

ClassLoaderLogManager.LogNode

ClassLoaderLogManager.LogNode(ClassLoaderLogManager.LogNode parent)
Constructor for LogNodes without Logger.

Parameters:
parent - of the new LogNode.
Method Detail

printTree

void printTree(java.lang.String prefix,
               ClassLoaderLogManager.LogNode node)
Prints directly information about the current LogNode tree to System.out.

Parameters:
prefix - for recursive printing.
node - the node to start with.

findNode

ClassLoaderLogManager.LogNode findNode(java.lang.String name)
Searches for a special logNode.

Parameters:
name - to lookup.
Returns:
the logNode which is nearest to the name.

findParentLogger

java.util.logging.Logger findParentLogger()
Searches for the parent logger in the LogNode tree.

Returns:
the parent logger.

setParentLogger

void setParentLogger(java.util.logging.Logger parentLogger)
Sets the parent where adaquate.

Parameters:
parentLogger - to set.


${license_html}