public class SessionLogEntry extends Object implements Serializable
SessionLog
,
DefaultSessionLog
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Accessor |
connection |
protected Date |
date |
protected int |
level |
protected String |
message |
protected String |
nameSpace |
protected Object[] |
parameters |
protected AbstractSession |
session |
protected boolean |
shouldTranslate |
protected Thread |
thread |
protected Throwable |
throwable |
Constructor and Description |
---|
SessionLogEntry(AbstractSession session)
PUBLIC:
Create a new session log entry for a session
|
SessionLogEntry(AbstractSession session,
int level,
String category,
Throwable throwable)
PUBLIC:
Create a new session log entry for a session, a level, a category and an exception
|
SessionLogEntry(AbstractSession session,
String message)
PUBLIC:
Create a new session log entry for a session and a message
|
SessionLogEntry(AbstractSession session,
String message,
Accessor connection)
PUBLIC:
Create a new session log entry for a session, a message and an accessor
|
SessionLogEntry(AbstractSession session,
Throwable throwable)
PUBLIC:
Create a new session log entry for a session and an exception
|
SessionLogEntry(int level,
AbstractSession session,
String message,
Object[] params,
Accessor connection,
boolean shouldTranslate)
PUBLIC:
Create a new session log entry for a request level, a session, a message and an accessor
|
SessionLogEntry(int level,
String category,
AbstractSession session,
String message,
Object[] params,
Accessor connection,
boolean shouldTranslate)
PUBLIC:
Create a new session log entry for a request level, a session, a message and an accessor
|
Modifier and Type | Method and Description |
---|---|
Accessor |
getConnection()
PUBLIC:
Return the connection that generated the log entry.
|
Date |
getDate()
PUBLIC:
Return the date of the log entry.
|
Throwable |
getException()
PUBLIC:
Return the exception that caused the log entry.
|
int |
getLevel()
PUBLIC:
Return the request level of the log entry.
|
String |
getMessage()
PUBLIC:
Return the log entry's message.
|
String |
getNameSpace()
PUBLIC:
Return the name space of the log entry.
|
Object[] |
getParameters()
PUBLIC:
Return the array of parameters to the message.
|
AbstractSession |
getSession()
PUBLIC:
Return the session that generated the log entry.
|
Thread |
getThread()
PUBLIC:
Return the thread that was active when the log entry was generated.
|
boolean |
hasException()
PUBLIC:
Return if the log entry was for an exception.
|
void |
setConnection(Accessor connection)
PUBLIC:
Set the connection that generated the log entry.
|
void |
setDate(Date date)
PUBLIC:
Set the date of the log entry.
|
void |
setException(Throwable throwable)
PUBLIC:
Set the exception that caused the log entry.
|
void |
setLevel(int level)
PUBLIC:
Set the request level of the log entry.
|
void |
setMessage(String message)
PUBLIC:
Set the entry's message.
|
void |
setNameSpace(String nameSpace)
PUBLIC:
Set the name space of the log entry.
|
void |
setParameters(Object[] params)
PUBLIC:
Set the array of parameters to the message.
|
void |
setSession(AbstractSession session)
PUBLIC:
Set the session that generated the log entry.
|
void |
setShouldTranslate(boolean shouldTranslate)
PUBLIC:
Set if the message should be translated.
|
void |
setThread(Thread thread)
PUBLIC:
Set the thread that was active when the log entry was generated.
|
boolean |
shouldTranslate()
PUBLIC:
Return if the message should be translated.
|
String |
toString()
PUBLIC:
Print message.
|
protected Date date
protected transient AbstractSession session
protected transient Thread thread
protected transient Accessor connection
protected String message
protected Throwable throwable
protected int level
protected String nameSpace
protected Object[] parameters
protected boolean shouldTranslate
public SessionLogEntry(AbstractSession session)
public SessionLogEntry(AbstractSession session, Throwable throwable)
public SessionLogEntry(AbstractSession session, String message)
public SessionLogEntry(AbstractSession session, String message, Accessor connection)
public SessionLogEntry(int level, AbstractSession session, String message, Object[] params, Accessor connection, boolean shouldTranslate)
public SessionLogEntry(int level, String category, AbstractSession session, String message, Object[] params, Accessor connection, boolean shouldTranslate)
public SessionLogEntry(AbstractSession session, int level, String category, Throwable throwable)
public Accessor getConnection()
public Date getDate()
public Throwable getException()
public String getMessage()
public AbstractSession getSession()
public Thread getThread()
public int getLevel()
public String getNameSpace()
public Object[] getParameters()
public boolean shouldTranslate()
public boolean hasException()
public void setConnection(Accessor connection)
public void setDate(Date date)
public void setException(Throwable throwable)
public void setMessage(String message)
public void setSession(AbstractSession session)
public void setThread(Thread thread)
public void setLevel(int level)
public void setNameSpace(String nameSpace)
public void setParameters(Object[] params)
public void setShouldTranslate(boolean shouldTranslate)
Copyright © 2024. All rights reserved.