public class LogMessageTag
extends neo.taglib.template.TemplateBodyTagSupport
Modifier and Type | Field and Description |
---|---|
static String |
CSS_COMMENTSTYLE |
static String |
DEBUG
logging level debug
|
static String |
ERROR
logging level error
|
static String |
HTML_COMMENTSTYLE |
static String |
INFO
logging level info
|
static String |
JAVASCRIPT_COMMENTSTYLE |
static String |
WARN
logging level warn
|
static String |
XML_COMMENTSTYLE |
APPLICATION_SCOPE, BROWSER, COM_ESCENIC_STALE, DEFAULT_STRINGBUFFER_SIZE, EMPTY_STRING, LARGE_STRINGBUFFER_SIZE, LOGGER, PAGE_SCOPE, PUBLISHED, REQUEST_SCOPE, SESSION_SCOPE
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
COM_ESCENIC_NOCACHE, REQUEST_CATALOG_INSTANCE, REQUEST_PRESENTATION_USER_INSTANCE, REQUEST_PRESENTATIONARTICLE_INSTANCE, REQUEST_PRESENTATIONPOOL_INSTANCE, REQUEST_PRESENTATIONPROFILE_INSTANCE, REQUEST_PUBLICATION_INSTANCE, REQUEST_SECTION_INSTANCE, REQUEST_SECTIONTREE_INSTANCE
Constructor and Description |
---|
LogMessageTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Default processing of the end tag returning
Tag.EVAL_PAGE . |
int |
doStartTag()
Default processing of the start tag returning
BodyTag.EVAL_BODY_BUFFERED . |
void |
release()
Release state.
|
void |
setCategory(String newCategory)
sets the category we will log to
|
void |
setComment(String newComment)
sets the comment to be added to the html-file
|
void |
setCommentStyle(String pCommentStyle)
Sets the comment style to be used when writing comments to the html-page.
|
void |
setLevel(String newLevel)
Sets the level of the debuging.
Allowd values: debug info warn error |
void |
setMessage(String newMessage)
sets the messaged that will be typed to the log
|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
getDefaultPresentationArticle, getDefaultPresentationPool, getDefaultPublication, getDefaultSection, getPresentationLoader, getSectionTree, getTemplateNameFor, popDefaultObject, print, pushDefaultObject
allowStale, convertToScope, getAPI, getJspPath, getName, getObjectByProperty, getProperty, getServletContext, getSpecifiedObject, getSpecifiedObject, getSpecifiedObject, getToScope, isLoggingEnabled, setName, setProperty, setToScope
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public static final String DEBUG
public static final String INFO
public static final String WARN
public static final String ERROR
public static final String HTML_COMMENTSTYLE
public static final String XML_COMMENTSTYLE
public static final String CSS_COMMENTSTYLE
public static final String JAVASCRIPT_COMMENTSTYLE
public int doStartTag() throws javax.servlet.jsp.JspException
neo.taglib.template.TemplateBodyTagSupport
BodyTag.EVAL_BODY_BUFFERED
.doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class neo.taglib.template.TemplateBodyTagSupport
BodyTag.EVAL_BODY_BUFFERED
javax.servlet.jsp.JspException
- if an error occurred while processing this tag.public int doEndTag() throws javax.servlet.jsp.JspException
neo.taglib.template.TemplateBodyTagSupport
Tag.EVAL_PAGE
.doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class neo.taglib.template.TemplateBodyTagSupport
Tag.EVAL_PAGE
javax.servlet.jsp.JspException
- if an error occurred while processing this tag.public void release()
neo.taglib.template.TemplateBodyTagSupport
release
in interface javax.servlet.jsp.tagext.Tag
release
in class neo.taglib.template.TemplateBodyTagSupport
public void setMessage(String newMessage)
newMessage
- the messaged that will be writtenpublic void setComment(String newComment)
newComment
- the comment to be sentpublic void setCommentStyle(String pCommentStyle)
pCommentStyle
- the style to be usedpublic void setLevel(String newLevel)
newLevel
- the new level of debugingpublic void setCategory(String newCategory)
newCategory
- the new category we will log to© 1998- 2018 Stibo DX