|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JLog
Interface used for the logging.
This don't use directly commons logging as the aim of this logging is to
provide internationalization abilities and to allow to use MessageFormat
message with an array of objects.
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. |
I18n |
getI18n()
Gets the i18n object associated to this logger. |
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? |
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. |
Method Detail |
---|
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.
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.
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.
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.
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.
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.
void trace(java.lang.Object message, java.lang.Object... args)
Log a message with trace log level.
message
- - 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.void debug(java.lang.Object message, java.lang.Object... args)
Log a message with debug log level.
message
- - 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.void info(java.lang.Object message, java.lang.Object... args)
Log a message with info log level.
message
- - 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.void warn(java.lang.Object message, java.lang.Object... args)
Log a message with warn log level.
message
- - 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.void error(java.lang.Object message, java.lang.Object... args)
Log a message with error log level.
message
- - 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.void fatal(java.lang.Object message, java.lang.Object... args)
Log a message with fatal log level.
message
- - 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.I18n getI18n()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |