|
Portlet API 2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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.isEnabled) log.warn ("Can access the content source"); ...
Field Summary | |
static boolean |
isEnabled
A variable indicating whether the portlet log is enabled. |
Method Summary | |
void |
error(String aText)
Logs the given error text in the portlet log. |
void |
error(String aText,
Throwable aCause)
Logs the given error text, cause, and a stack trace in the portlet log. |
void |
info(String aText)
Logs the given informational text in the portlet log. |
boolean |
isEnabled()
Returns whether the portlet log is enabled. |
void |
warn(String aText)
Logs the given warning text in the portlet log. |
Field Detail |
public static final boolean isEnabled
isEnabled()
Method Detail |
public boolean isEnabled()
true
if the log is enabled, false
isEnabled
public void info(String aText)
aText
- the informational text to logpublic void warn(String aText)
aText
- the warning text to logpublic void error(String aText)
aText
- the error text to logerror(String,Throwable)
public void error(String aText, Throwable aCause)
aText
- the error text to logaCause
- the cause for loggingerror(String)
|
Portlet API 2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |