| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.acelogger.factory.LoggerFactory
public final class LoggerFactory

Factory for managing instances of configured loggers.
| Method Summary | |
|---|---|
static Logger | 
getDefaultLogger()
Returns the default logger of this factory, the one used when no logger is found for a given identifier.  | 
static Logger | 
getLogger()
Obtains a properly configured logger based in the callers class information.  | 
static Logger | 
getLogger(Class<?> clazz)
Obtains a properly configured logger for the given class.  | 
static Logger | 
getLogger(String identifier)
Obtains a properly configured logger for the given identifier.  | 
static List<Logger> | 
getRegisteredLoggers()
Returns a list of all loggers registered in this factory.  | 
static Logger | 
registerLogger(Logger logger)
Registers an appender within this factory.  | 
static Logger | 
setDefaultLogger(Logger defaultLogger)
Sets the default logger of this factory, the one used when no logger is found for a given identifier.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static Logger getLogger(String identifier)
identifier - The identifier of the intended logger.
getDefaultLogger()public static Logger getLogger(Class<?> clazz)
clazz - The class that will generate the logger identifier.
getDefaultLogger()public static Logger getLogger()
getDefaultLogger(), 
CodeFrameResolver.getCodeFrame()public static Logger setDefaultLogger(Logger defaultLogger)
defaultLogger - The logger that will be used as the default one from now.
public static Logger getDefaultLogger()
public static List<Logger> getRegisteredLoggers()
public static Logger registerLogger(Logger logger)
logger - The logger to be registered.
getDefaultLogger()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||