|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bristle.javalib.log.XMLDOMLoggerTarget
public class XMLDOMLoggerTarget
This class implements the Logger.LoggerTarget interface, writing log entries to an XML DOM.
Usage:
- See the Logger
class.
- See the source code of the inner Tester class for more examples.
Assumptions:
Effects:
Anticipated Changes: Notes: Implementation Notes: Portability Issues: Revision History: $Log$
Nested Class Summary | |
---|---|
static class |
XMLDOMLoggerTarget.Tester
Each class contains a Tester inner class with a main() for easier unit testing. |
Constructor Summary | |
---|---|
XMLDOMLoggerTarget(Document xmlDOM)
Constructor. |
Method Summary | |
---|---|
String |
getXMLAppNameTag()
Get the XML tag used for "AppName" nodes. |
String |
getXMLAppVersionTag()
Get the XML tag used for "AppVersion" nodes. |
String |
getXMLDateTimeTag()
Get the XML tag used for "DateTime" nodes. |
Document |
getXMLDOM()
Get the XML DOM that messages are currently being logged to. |
String |
getXMLEntryTag()
Get the XML tag used for "Entry" nodes. |
String |
getXMLLevelTag()
Get the XML tag used for "Level" nodes. |
String |
getXMLMillisecsTag()
Get the XML tag used for "Millisecs" nodes. |
String |
getXMLMsgTag()
Get the XML tag used for "Msg" nodes. |
String |
getXMLRootTag()
Get the XML root tag. |
String |
getXMLThreadNameTag()
Get the XML tag used for "ThreadName" nodes. |
String |
getXMLTotalMemTag()
Get the XML tag used for "TotalMem" nodes. |
String |
getXMLUsedMemTag()
Get the XML tag used for "UsedMem" nodes. |
String |
getXMLUsernameTag()
Get the XML tag used for "Username" nodes. |
void |
log(Logger.Entry entry)
Log the log entry to the XML DOM. |
void |
setXMLAppNameTag(String strNew)
Set the XML tag used for "AppName" nodes. |
void |
setXMLAppVersionTag(String strNew)
Set the XML tag used for "AppVersion" nodes. |
void |
setXMLDateTimeTag(String strNew)
Set the XML tag used for "DateTime" nodes. |
void |
setXMLDOM(Document xmlDOM)
Set the XML DOM to write log entries to. |
void |
setXMLEntryTag(String strNew)
Set the XML tag used for "Entry" nodes. |
void |
setXMLLevelTag(String strNew)
Set the XML tag used for "Level" nodes. |
void |
setXMLMillisecsTag(String strNew)
Set the XML tag used for "Millisecs" nodes. |
void |
setXMLMsgTag(String strNew)
Set the XML tag used for "Msg" nodes. |
void |
setXMLRootTag(String strNew)
Set the XML root tag. |
void |
setXMLThreadNameTag(String strNew)
Set the XML tag used for "ThreadName" nodes. |
void |
setXMLTotalMemTag(String strNew)
Set the XML tag used for "TotalMem" nodes. |
void |
setXMLUsedMemTag(String strNew)
Set the XML tag used for "UsedMem" nodes. |
void |
setXMLUsernameTag(String strNew)
Set the XML tag used for "Username" nodes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLDOMLoggerTarget(Document xmlDOM)
xmlDOM
- The XML DOM to write log entries to.Method Detail |
---|
public void setXMLDOM(Document xmlDOM)
xmlDOM
- The new XML DOM.public Document getXMLDOM()
public void setXMLRootTag(String strNew)
strNew
- The new XML root tag.public String getXMLRootTag()
public void setXMLEntryTag(String strNew)
strNew
- The new XML Entry tag.public String getXMLEntryTag()
public void setXMLDateTimeTag(String strNew)
strNew
- The new XML DateTime tag.public String getXMLDateTimeTag()
public void setXMLAppNameTag(String strNew)
strNew
- The new XML AppName tag.public String getXMLAppNameTag()
public void setXMLAppVersionTag(String strNew)
strNew
- The new XML AppVersion tag.public String getXMLAppVersionTag()
public void setXMLUsernameTag(String strNew)
strNew
- The new XML Username tag.public String getXMLUsernameTag()
public void setXMLThreadNameTag(String strNew)
strNew
- The new XML ThreadName tag.public String getXMLThreadNameTag()
public void setXMLMillisecsTag(String strNew)
strNew
- The new XML Millisecs tag.public String getXMLMillisecsTag()
public void setXMLUsedMemTag(String strNew)
strNew
- The new XML UsedMem tag.public String getXMLUsedMemTag()
public void setXMLTotalMemTag(String strNew)
strNew
- The new XML TotalMem tag.public String getXMLTotalMemTag()
public void setXMLLevelTag(String strNew)
strNew
- The new XML Level tag.public String getXMLLevelTag()
public void setXMLMsgTag(String strNew)
strNew
- The new XML Msg tag.public String getXMLMsgTag()
public void log(Logger.Entry entry) throws TransformerException
log
in interface Logger.LoggerTarget
entry
- The log entry to write to the log.
TransformerException
- When an error occurs adding to the XML.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |