|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.goetz.domino.log4j.LogDocument
This class provides a container for log documents in a Domino application.
Field Summary | |
protected static java.lang.String |
DEFAULT_FORM_NAME
Default form name. |
protected static int |
DEFAULT_MAX_LINES
The number of LoggingEvents to log in a singel Domino document. |
protected static int |
MAX_DOCUMENT_SIZE
The maximum to write to a document is 32kB. |
protected static int |
UPPER_SIZE_LIMIT
The upper limit in bytes where to stop writing to a document. |
Constructor Summary | |
LogDocument()
|
|
LogDocument(java.lang.String name,
java.lang.String path,
java.lang.String name2,
java.lang.String name3,
java.util.Date time)
|
Method Summary | |
void |
add(java.lang.String s)
Adds a single line to the document. |
java.lang.String |
getApplicationName()
|
java.lang.String |
getApplicationPath()
|
java.lang.String |
getCurrentDocId()
|
int |
getCurrentLines()
|
int |
getCurrentSize()
|
java.lang.String |
getDatabaseName()
|
java.util.Vector |
getEvents()
|
java.util.Date |
getFinishTime()
|
java.lang.String |
getFormName()
|
int |
getMaxLines()
|
java.lang.String |
getMessage()
|
java.lang.String |
getServerName()
|
java.util.Date |
getStartTime()
|
boolean |
isDirty()
|
boolean |
isFull()
|
boolean |
messageContainsUserVariable()
Returns true if the current message contains the variable "%u". |
void |
reset(java.util.Date startTime)
Resets the current log document. |
void |
setApplicationName(java.lang.String applicationName)
|
void |
setApplicationPath(java.lang.String applicationPath)
|
void |
setCurrentDocId(java.lang.String currentDocId)
|
void |
setDatabaseName(java.lang.String databaseName)
|
void |
setFinishTime(java.util.Date finishTime)
|
void |
setFormName(java.lang.String formName)
|
void |
setMaxLines(int lines)
|
void |
setMessage(java.lang.String message)
Sets the message string and the |
void |
setServerName(java.lang.String serverName)
|
void |
setStartTime(java.util.Date startTime)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int DEFAULT_MAX_LINES
protected static final java.lang.String DEFAULT_FORM_NAME
protected static final int UPPER_SIZE_LIMIT
protected static final int MAX_DOCUMENT_SIZE
Constructor Detail |
public LogDocument()
public LogDocument(java.lang.String name, java.lang.String path, java.lang.String name2, java.lang.String name3, java.util.Date time)
Method Detail |
public void reset(java.util.Date startTime)
startTime
- public java.lang.String getApplicationName()
public java.lang.String getApplicationPath()
public java.util.Date getFinishTime()
public void setFinishTime(java.util.Date finishTime)
public java.lang.String getFormName()
public java.lang.String getServerName()
public java.util.Date getStartTime()
public java.util.Vector getEvents()
public void add(java.lang.String s)
s
- public int getCurrentSize()
public int getCurrentLines()
public void setApplicationName(java.lang.String applicationName)
public void setApplicationPath(java.lang.String applicationPath)
public void setFormName(java.lang.String formName)
public void setServerName(java.lang.String serverName)
public void setStartTime(java.util.Date startTime)
public java.lang.String getDatabaseName()
public void setDatabaseName(java.lang.String databaseName)
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- public boolean messageContainsUserVariable()
setMessage()
.
public int getMaxLines()
public void setMaxLines(int lines)
public boolean isFull()
public java.lang.String getCurrentDocId()
public void setCurrentDocId(java.lang.String currentDocId)
public boolean isDirty()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |