|
andyLib v0.9.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.andynaz.log.LoggerMgr
public class LoggerMgr
This class let you create a "default" logger.
The default logger is the one specified by tha value "log.defaultLogger
" in the ConfigMgr
class. The logger used should
have two constructors, the one with no arguments and another one with takes a
string.
The logger is created using the configuration stored in the ConfigMgr
class. If the class specified by the value "defaultLogger
"
does not exist or it is not a subclass of Logger
, a Logger
is
created (the one that uses the standard output).
Constructor Summary | |
---|---|
private |
LoggerMgr()
|
Method Summary | |
---|---|
static Logger |
getLogger()
Returns a "default" logger without a name. |
static Logger |
getLogger(String name)
Returnes a "default" logger with a name. |
private static Class<Logger> |
getLoggerClass()
Returns the class used to create the logger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private LoggerMgr()
Method Detail |
---|
public static Logger getLogger()
Logger
in caso of
errorspublic static Logger getLogger(String name)
name
- the name of the logger
Logger
in case of errors) with a
nameprivate static Class<Logger> getLoggerClass()
defaultLogger
" property.
|
andyLib v0.9.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |