public class DefaultSessionLog extends AbstractSessionLog implements java.io.Serializable
SessionLog, AbstractSessionLog, Serialized FormALL, ALL_LABEL, CACHE, CONFIG, CONFIG_LABEL, CONNECTION, DDL, DMS, EJB, EJB_OR_METADATA, EVENT, FINE, FINE_LABEL, FINER, FINER_LABEL, FINEST, FINEST_LABEL, INFO, INFO_LABEL, JPA, JPARS, loggerCatagories, METADATA, METAMODEL, MONITORING, OFF, OFF_LABEL, PROPAGATION, PROPERTIES, QUERY, SEQUENCING, SERVER, SEVERE, SEVERE_LABEL, SQL, TRANSACTION, WARNING, WARNING_LABEL, WEAVER| Constructor and Description | 
|---|
DefaultSessionLog()  | 
DefaultSessionLog(java.io.Writer writer)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getLevel(java.lang.String category)
PUBLIC: Return the log level for the category name space. 
 | 
java.lang.String | 
getWriterFilename()
For the given writer, return it's associated filename. 
 | 
void | 
log(SessionLogEntry entry)
Log the entry. 
 | 
void | 
setLevel(int level, java.lang.String category)
PUBLIC: Set the log level for the category name space. 
 | 
void | 
setWriter(java.lang.String aFileName)
Set the writer that will receive the formatted log entries for a file name. 
 | 
boolean | 
shouldLog(int level, java.lang.String category)
Check if a message of the given level would actually be logged by the logger with name space built from the given session and category. 
 | 
clone, config, fine, finer, finest, getDateFormat, getDefaultLoggingLevel, getLevel, getLevelString, getLog, getSession, getWriter, info, isOff, log, log, log, log, log, log, log, log, log, log, log, log, log, logThrowable, logThrowable, setDateFormat, setLevel, setLog, setSession, setShouldDisplayData, setShouldLogExceptionStackTrace, setShouldPrintConnection, setShouldPrintDate, setShouldPrintSession, setShouldPrintThread, setWriter, setWriter, severe, shouldDisplayData, shouldLog, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, throwing, translateLoggingLevelToString, translateStringToLoggingLevel, warningpublic DefaultSessionLog()
public DefaultSessionLog(java.io.Writer writer)
public void setLevel(int level,
            java.lang.String category)
AbstractSessionLogSet the log level for the category name space.
setLevel in interface SessionLogsetLevel in class AbstractSessionLoglevel - the new log levelcategory - the string representation of an EclipseLink category, e.g. "sql", "transaction" ...public int getLevel(java.lang.String category)
AbstractSessionLogReturn the log level for the category name space.
getLevel in interface SessionLoggetLevel in class AbstractSessionLogcategory - the string representation of a EclipseLink category, e.g. "sql", "transaction" ...
public boolean shouldLog(int level,
                java.lang.String category)
shouldLog in interface SessionLogshouldLog in class AbstractSessionLoglevel - the log request levelcategory - the string representation of an EclipseLink category, e.g. "sql", "transaction" ...*public void log(SessionLogEntry entry)
log in interface SessionLoglog in class AbstractSessionLogentry - org.eclipse.persistence.sessions.LogEntrypublic void setWriter(java.lang.String aFileName)
public java.lang.String getWriterFilename()