|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jaxfront.core.log.Log4JLogRegistry
public class Log4JLogRegistry
This class logs all message with Log4J. With the property file of Log4J the message could be loged in a file or to the console. This class delegates the messages to Log4J.
| Field Summary | |
|---|---|
static java.lang.String |
ERROR
|
static java.lang.String |
FATAL
|
static java.lang.String |
INFO
|
static java.lang.String |
LOG
|
static java.lang.String |
WARN
|
| Constructor Summary | |
|---|---|
Log4JLogRegistry()
Creates an instance of a Log4J Logger. |
|
| Method Summary | |
|---|---|
void |
error(java.lang.Class aClass,
java.lang.Exception e)
Log the exception with log level error |
void |
error(java.lang.Class aClass,
java.lang.String message)
Log the message with log level error |
void |
fatal(java.lang.Class aClass,
java.lang.Exception e)
Log the exception with log level fatal |
void |
fatal(java.lang.Class aClass,
java.lang.String message)
Log the message with log level fatal |
java.lang.String |
getLogFileUrl()
|
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 |
boolean |
logErrors()
|
boolean |
logFatals()
|
boolean |
logInfos()
|
boolean |
logLogs()
|
boolean |
logWarnings()
|
void |
setDebug(boolean isDebug)
|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ERROR
public static final java.lang.String FATAL
public static final java.lang.String INFO
public static final java.lang.String LOG
public static final java.lang.String WARN
| Constructor Detail |
|---|
public Log4JLogRegistry()
| Method Detail |
|---|
public void error(java.lang.Class aClass,
java.lang.Exception e)
error in interface LoggeraClass - the class where the message comese - the exception to log
public void error(java.lang.Class aClass,
java.lang.String message)
error in interface LoggeraClass - the class where the message comesmessage - the message to log
public void fatal(java.lang.Class aClass,
java.lang.Exception e)
fatal in interface LoggeraClass - the class where the message comese - the exception to log
public void fatal(java.lang.Class aClass,
java.lang.String message)
fatal in interface LoggeraClass - the class where the message comesmessage - the message to logpublic java.lang.String getLogFileUrl()
getLogFileUrl in interface Logger
public void info(java.lang.Class aClass,
java.lang.String message)
info in interface LoggeraClass - the class where the message comesmessage - the message to logpublic boolean isDebug()
public void log(java.lang.Class aClass,
java.lang.String message)
log in interface LoggeraClass - the class where the message comesmessage - the message to logpublic boolean logErrors()
logErrors in interface Loggerpublic boolean logFatals()
logFatals in interface Loggerpublic boolean logInfos()
logInfos in interface Loggerpublic boolean logLogs()
logLogs in interface Loggerpublic boolean logWarnings()
logWarnings in interface Loggerpublic void setDebug(boolean isDebug)
public void setLogFileUrl(java.lang.String url)
setLogFileUrl in interface Loggerpublic void setLogLevels(java.lang.String[] logLevels)
setLogLevels in interface Logger
public void warn(java.lang.Class aClass,
java.lang.String message)
warn in interface LoggeraClass - the class where the message comesmessage - the message to log
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||