|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.log.LogRegistry
public class LogRegistry
This is the main class to log a message. First it tries to create an instance of the Log4J logger. If it failes, a dummy logger will be used.
LogRegistry
,
DummyLogRegistry
Method Summary | |
---|---|
void |
error(java.lang.Class aClass,
java.lang.Exception e)
Log the exception with log level error to the coosen logger |
void |
error(java.lang.Class aClass,
java.lang.String message)
Log the message with log level error to the coosen logger |
void |
fatal(java.lang.Class aClass,
java.lang.Exception e)
Log the exception with log level fatal to the coosen logger |
void |
fatal(java.lang.Class aClass,
java.lang.String message)
Log the message with log level fatal |
static LogRegistry |
getInstance()
Returns the instance of this class |
static org.apache.log4j.Logger |
getJDBCLogger()
|
java.lang.String |
getLogFileUrl()
|
Logger |
getLogger()
Returns the choosen logger that has been build. |
void |
info(java.lang.Class aClass,
java.lang.String message)
Log the message with log level info |
boolean |
isDebug()
|
void |
log(java.lang.Class aClass,
java.lang.String message)
Log the message with log level log to the coosen logger |
void |
setLogFileUrl(java.lang.String url)
|
void |
setLogLevels(java.lang.String[] logLevels)
|
void |
warn(java.lang.Class aClass,
java.lang.String message)
Log the message with log level warn to the choosen logger |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setLogFileUrl(java.lang.String url)
setLogFileUrl
in interface Logger
public java.lang.String getLogFileUrl()
getLogFileUrl
in interface Logger
public void setLogLevels(java.lang.String[] logLevels)
setLogLevels
in interface Logger
public void error(java.lang.Class aClass, java.lang.Exception e)
error
in interface Logger
aClass
- the class where the message comese
- the exception to logpublic void error(java.lang.Class aClass, java.lang.String message)
error
in interface Logger
aClass
- the class where the message comesmessage
- the message to logpublic void fatal(java.lang.Class aClass, java.lang.Exception e)
fatal
in interface Logger
aClass
- the class where the message comese
- the exception to logpublic void fatal(java.lang.Class aClass, java.lang.String message)
fatal
in interface Logger
aClass
- the class where the message comesmessage
- the message to logpublic static LogRegistry getInstance()
public Logger getLogger()
public void info(java.lang.Class aClass, java.lang.String message)
info
in interface Logger
aClass
- the class where the message comesmessage
- the message to logpublic void log(java.lang.Class aClass, java.lang.String message)
log
in interface Logger
aClass
- the class where the message comesmessage
- the message to logpublic void warn(java.lang.Class aClass, java.lang.String message)
warn
in interface Logger
aClass
- the class where the message comesmessage
- the message to logpublic boolean isDebug()
public static org.apache.log4j.Logger getJDBCLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |