|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.util.log.JDKLogger
public class JDKLogger
Logger with I18n and infinite arguments.
| Field Summary | |
|---|---|
static java.lang.String |
SET_HANDLER
Property to disable the set of our own handler. |
| Constructor Summary | |
|---|---|
|
JDKLogger(java.lang.Class<?> clazz,
org.ow2.util.i18n.I18n i18n)
Creates a new logger. |
protected |
JDKLogger(java.lang.String className,
org.ow2.util.i18n.I18n i18n)
Creates a new logger. |
| Method Summary | |
|---|---|
void |
debug(java.lang.Object message,
java.lang.Object... args)
Log a message with debug log level. |
void |
error(java.lang.Object message,
java.lang.Object... args)
Log a message with error log level. |
void |
fatal(java.lang.Object message,
java.lang.Object... args)
Log a message with fatal log level. |
org.ow2.util.i18n.I18n |
getI18n()
Gets the i18n object associated to this logger. |
java.util.logging.Logger |
getLogger()
|
void |
info(java.lang.Object message,
java.lang.Object... args)
Log a message with info log level. |
boolean |
isDebugEnabled()
Is debug logging currently enabled? |
boolean |
isErrorEnabled()
Is error logging currently enabled? |
boolean |
isFatalEnabled()
Is fatal logging currently enabled? |
boolean |
isInfoEnabled()
Is info logging currently enabled? |
boolean |
isTraceEnabled()
Is trace logging currently enabled? |
boolean |
isWarnEnabled()
Is warn logging currently enabled? |
protected java.lang.Object |
readResolve()
Used to recreate logger after deserialization. |
void |
trace(java.lang.Object message,
java.lang.Object... args)
Log a message with trace log level. |
void |
warn(java.lang.Object message,
java.lang.Object... args)
Log a message with warn log level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SET_HANDLER
| Constructor Detail |
|---|
public JDKLogger(java.lang.Class<?> clazz,
org.ow2.util.i18n.I18n i18n)
clazz - the class that requires a logger.i18n - the internationalization object to use, if any.
protected JDKLogger(java.lang.String className,
org.ow2.util.i18n.I18n i18n)
className - the name of the class that requires a logger.i18n - the internationalization object to use, if any.| Method Detail |
|---|
protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException - if object can't be resolvedpublic java.util.logging.Logger getLogger()
public boolean isDebugEnabled()
Is debug logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more
than debug.
isDebugEnabled in interface Logpublic boolean isErrorEnabled()
Is error logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more
than error.
isErrorEnabled in interface Logpublic boolean isFatalEnabled()
Is fatal logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more
than fatal.
isFatalEnabled in interface Logpublic boolean isInfoEnabled()
Is info logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more
than info.
isInfoEnabled in interface Logpublic boolean isTraceEnabled()
Is trace logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more
than trace.
isTraceEnabled in interface Logpublic boolean isWarnEnabled()
Is warn logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String concatenation) when the log level is more
than warn.
isWarnEnabled in interface Logpublic org.ow2.util.i18n.I18n getI18n()
getI18n in interface Log
public void debug(java.lang.Object message,
java.lang.Object... args)
Log a message with debug log level.
debug in interface Logmessage - - This could be
args - could be empty or contains the object for the formatter (I18n
case). To log an exception, the exception must be the last
argument.
public void error(java.lang.Object message,
java.lang.Object... args)
Log a message with error log level.
error in interface Logmessage - - This could be
args - could be empty or contains the object for the formatter (I18n
case). To log an exception, the exception must be the last
argument.
public void fatal(java.lang.Object message,
java.lang.Object... args)
Log a message with fatal log level.
fatal in interface Logmessage - - This could be
args - could be empty or contains the object for the formatter (I18n
case). To log an exception, the exception must be the last
argument.
public void info(java.lang.Object message,
java.lang.Object... args)
Log a message with info log level.
info in interface Logmessage - - This could be
args - could be empty or contains the object for the formatter (I18n
case). To log an exception, the exception must be the last
argument.
public void trace(java.lang.Object message,
java.lang.Object... args)
Log a message with trace log level.
trace in interface Logmessage - - This could be
args - could be empty or contains the object for the formatter (I18n
case). To log an exception, the exception must be the last
argument.
public void warn(java.lang.Object message,
java.lang.Object... args)
Log a message with warn log level.
warn in interface Logmessage - - This could be
args - could be empty or contains the object for the formatter (I18n
case). To log an exception, the exception must be the last
argument.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||