|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.util.logging.LoggerManager
public class LoggerManager
a central point to manager different Logger instances
| Method Summary | ||
|---|---|---|
Logger |
createInstance(EventObject eo)
creates a new instance of the factory type on each call based on the given event |
|
static Logger |
getDefaultlogger()
|
|
Handler<Logger,?> |
getHandler()
|
|
static LoggerManager |
getInstance()
|
|
Logger |
getLogger(Object obj)
if no specific logger is available, the default logger is returned, so that this method never returns null |
|
Logger |
getLoggerFor(Object obj)
if no logger had been specified for the given obj, this method returns null |
|
Set<Object> |
getLoggerObjects()
|
|
Logger |
getOrCreateLoggerFor(Object obj)
|
|
void |
removeAll()
|
|
Logger |
removeLoggerFor(Object obj)
|
|
void |
setHandler(Handler<Logger,?> handler)
|
|
Logger |
setLogger(Object obj,
Logger logger)
|
|
static
|
toFormatter(PatternExtractor<LogEntry,T> pe)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Handler<Logger,?> getHandler()
public void setHandler(Handler<Logger,?> handler)
public Logger createInstance(EventObject eo)
throws Exception
Factory
createInstance in interface Factory<Logger>eo - the event that triggered this instance creation; normally, this method
should also cope with the event to be null.
Exceptionpublic static Logger getDefaultlogger()
public static LoggerManager getInstance()
public Logger setLogger(Object obj,
Logger logger)
public Logger removeLoggerFor(Object obj)
public void removeAll()
public Set<Object> getLoggerObjects()
public Logger getOrCreateLoggerFor(Object obj)
public Logger getLogger(Object obj)
public Logger getLoggerFor(Object obj)
public static <T> LogEntryFormatter<T> toFormatter(PatternExtractor<LogEntry,T> pe)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||