SessionLog, DefaultSessionLog
| Modifier and Type | Field and Description |
|---|---|
| protected transient Accessor | |
| protected Date | |
| protected int | |
| protected String | |
| protected String | |
| protected Object[] | |
| protected transient AbstractSession | |
| protected boolean | |
| protected String | |
| protected String | |
| protected transient Thread | |
| protected Throwable |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SessionLogEntry(AbstractSession
the session session, Throwable the throwable throwable)Create a new session log entry for a session and a throwable. |
| public | SessionLogEntry(AbstractSession
the session session, String the message message)Create a new session log entry for a session and a message. |
| public | SessionLogEntry(AbstractSession
the session session, String the message message, Accessor the accessor connection)Create a new session log entry for a session, a message and an accessor. |
| public | SessionLogEntry(int
the log level level, AbstractSession the session session, String the message message, Object[] array of parameters params, Accessor the accessor connection, boolean true if the entry should be translated shouldTranslate)Create a new session log entry for a request level, a session, a message, parameters and an accessor. |
| public | SessionLogEntry(int
the log level level, String the category category, AbstractSession the session session, String the message message, Object[] array of parameters params, Accessor the accessor connection, boolean true if the entry should be translated shouldTranslate)Create a new session log entry for a request level, a category, a session, a message, parameters and an accessor. |
| public | SessionLogEntry(AbstractSession
the session session, int the log level level, String the category category, Throwable the exception throwable)Create a new session log entry for a session, a level, a category and an exception. |
| Modifier and Type | Method and Description |
|---|---|
| public Accessor | |
| public Date | |
| public Throwable | |
| public int | |
| public String | |
| public String | |
| public Object[] | |
| public AbstractSession | |
| public String | |
| public String | |
| public Thread | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setShouldTranslate(boolean
true if the message should be translated, false otherwise shouldTranslate)Set if the message should be translated. |
| public void | setSourceClassName(String
source class name sourceClassName)Set the source class name to the message. |
| public void | setSourceMethodName(String
source method name sourceMethodName)Set the source method name to the message. |
| public void | |
| public boolean | |
| public String |
| connection | back to summary |
|---|---|
| protected transient Accessor connection | |
| date | back to summary |
|---|---|
| protected Date date | |
| level | back to summary |
|---|---|
| protected int level | |
| message | back to summary |
|---|---|
| protected String message | |
| nameSpace | back to summary |
|---|---|
| protected String nameSpace | |
| parameters | back to summary |
|---|---|
| protected Object[] parameters | |
| session | back to summary |
|---|---|
| protected transient AbstractSession session | |
| shouldTranslate | back to summary |
|---|---|
| protected boolean shouldTranslate | |
| sourceClassName | back to summary |
|---|---|
| protected String sourceClassName | |
| sourceMethodName | back to summary |
|---|---|
| protected String sourceMethodName | |
| thread | back to summary |
|---|---|
| protected transient Thread thread | |
| throwable | back to summary |
|---|---|
| protected Throwable throwable | |
| SessionLogEntry | back to summary |
|---|---|
| public SessionLogEntry(AbstractSession session) Create a new session log entry for a session.
| |
| SessionLogEntry | back to summary |
|---|---|
| public SessionLogEntry(AbstractSession session, Throwable throwable) Create a new session log entry for a session and a throwable.
| |
| SessionLogEntry | back to summary |
|---|---|
| public SessionLogEntry(AbstractSession session, String message) Create a new session log entry for a session and a message.
| |
| SessionLogEntry | back to summary |
|---|---|
| public SessionLogEntry(AbstractSession session, String message, Accessor connection) Create a new session log entry for a session, a message and an accessor.
| |
| SessionLogEntry | back to summary |
|---|---|
| public SessionLogEntry(int level, AbstractSession session, String message, Object[] params, Accessor connection, boolean shouldTranslate) Create a new session log entry for a request level, a session, a message,
parameters and an accessor.
| |
| SessionLogEntry | back to summary |
|---|---|
| public SessionLogEntry(int level, String category, AbstractSession session, String message, Object[] params, Accessor connection, boolean shouldTranslate) Create a new session log entry for a request level, a category, a session,
a message, parameters and an accessor.
| |
| SessionLogEntry | back to summary |
|---|---|
| public SessionLogEntry(AbstractSession session, int level, String category, Throwable throwable) Create a new session log entry for a session, a level, a category and an
exception.
| |
| getConnection | back to summary |
|---|---|
| public Accessor getConnection() Return the connection that generated the log entry.
| |
| getDate | back to summary |
|---|---|
| public Date getDate() Return the date of the log entry.
| |
| getException | back to summary |
|---|---|
| public Throwable getException() Return the exception that caused the log entry.
| |
| getLevel | back to summary |
|---|---|
| public int getLevel() Return the request level of the log entry.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Return the log entry's message.
| |
| getNameSpace | back to summary |
|---|---|
| public String getNameSpace() Return the name space of the log entry.
| |
| getParameters | back to summary |
|---|---|
public Object[] getParameters()
| |
| getSession | back to summary |
|---|---|
| public AbstractSession getSession() Return the session that generated the log entry.
| |
| getSourceClassName | back to summary |
|---|---|
public String getSourceClassName()
| |
| getSourceMethodName | back to summary |
|---|---|
public String getSourceMethodName()
| |
| getThread | back to summary |
|---|---|
| public Thread getThread() Return the thread that was active when the log entry was generated.
| |
| hasException | back to summary |
|---|---|
public boolean hasException()
| |
| hasMessage | back to summary |
|---|---|
public boolean hasMessage()
| |
| setConnection | back to summary |
|---|---|
| public void setConnection(Accessor connection) Set the connection that generated the log entry.
| |
| setDate | back to summary |
|---|---|
| public void setDate(Date date) Set the date of the log entry.
| |
| setException | back to summary |
|---|---|
| public void setException(Throwable throwable) Set the exception that caused the log entry.
| |
| setLevel | back to summary |
|---|---|
| public void setLevel(int level) Set the request level of the log entry.
| |
| setMessage | back to summary |
|---|---|
| public void setMessage(String message) Set the entry's message.
| |
| setNameSpace | back to summary |
|---|---|
| public void setNameSpace(String nameSpace) Set the name space of the log entry.
| |
| setParameters | back to summary |
|---|---|
| public void setParameters(Object[] params) Set the array of parameters to the message.
| |
| setSession | back to summary |
|---|---|
| public void setSession(AbstractSession session) Set the session that generated the log entry.
| |
| setShouldTranslate | back to summary |
|---|---|
| public void setShouldTranslate(boolean shouldTranslate) Set if the message should be translated.
| |
| setSourceClassName | back to summary |
|---|---|
| public void setSourceClassName(String sourceClassName) Set the source class name to the message.
| |
| setSourceMethodName | back to summary |
|---|---|
| public void setSourceMethodName(String sourceMethodName) Set the source method name to the message.
| |
| setThread | back to summary |
|---|---|
| public void setThread(Thread thread) Set the thread that was active when the log entry was generated.
| |
| shouldTranslate | back to summary |
|---|---|
public boolean shouldTranslate()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |