|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PortletLog
provides the portlet with the ability
to log information, warning, or error texts. The log is
maintained by the portlet container. The type and location of
of the log is a matter of implementation. Also, whether logging
is enabled or not is at the discretion of the portlet container.
... PortletLog log = iContext.getLog (); if (log.isWarnEnabled()) log.warn ("Can access the content source"); ...
Method Summary | |
void |
debug(java.lang.String text)
Logs the given informational text in the portlet log. |
void |
error(java.lang.String text)
Logs the given error text in the portlet log. |
void |
error(java.lang.String text,
java.lang.Throwable cause)
Logs the given error text, cause, and a stack trace in the portlet log. |
void |
info(java.lang.String text)
Logs the given informational text in the portlet log. |
boolean |
isDebugEnabled()
Returns whether the debug level of the portlet log is enabled. |
boolean |
isErrorEnabled()
Returns whether the error level of the portlet log is enabled. |
boolean |
isInfoEnabled()
Returns whether the info level of the portlet log is enabled. |
boolean |
isWarnEnabled()
Returns whether the warn level of the portlet log is enabled. |
void |
warn(java.lang.String text)
Logs the given warning text in the portlet log. |
Method Detail |
public boolean isDebugEnabled()
true
if the log is enabled, false
public void debug(java.lang.String text)
public boolean isInfoEnabled()
true
if the log is enabled, false
public void info(java.lang.String text)
public boolean isWarnEnabled()
true
if the log is enabled, false
public void warn(java.lang.String text)
text
- the warning text to logpublic boolean isErrorEnabled()
true
if the log is enabled, false
public void error(java.lang.String text)
text
- the error text to logerror(String,Throwable)
public void error(java.lang.String text, java.lang.Throwable cause)
text
- the error text to logcause
- the cause for loggingerror(String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |