ch.qos.logback.classic.control
Class ControlLoggerContext

java.lang.Object
  extended by ch.qos.logback.classic.control.ControlLoggerContext

public class ControlLoggerContext
extends Object

This logger context quite optimized for logger retrieval.

It uses a single loggerMap where the key is the logger name and the value is the logger.

This approach acts a lower limit for what is achievable for low memory usage as well as low creation/retrieval times. However, this simplicity also results in slow effective level evaluation, the most frequently exercised part of the API.

This class is expected to contain correct results, and serve to verify the correctness of a more sophisticated implementation.

Author:
ceki

Constructor Summary
ControlLoggerContext()
           
 
Method Summary
 ControlLogger exists(String name)
           
 ControlLogger getLogger(String name)
           
 Map<String,ControlLogger> getLoggerMap()
           
 ControlLogger getRootLogger()
          Return this contexts root logger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlLoggerContext

public ControlLoggerContext()
Method Detail

getRootLogger

public ControlLogger getRootLogger()
Return this contexts root logger

Returns:

exists

public ControlLogger exists(String name)

getLogger

public final ControlLogger getLogger(String name)

getLoggerMap

public Map<String,ControlLogger> getLoggerMap()


Copyright © 2005-2009 QOS.ch. All Rights Reserved.