public class SLF4JLogger extends AbstractSessionLog
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ECLIPSELINK_NAMESPACE
The default session name in case there is session name is missing.
|
ALL, ALL_LABEL, CACHE, CONFIG, CONFIG_LABEL, CONNECTION, DBWS, DDL, DMS, EJB, EJB_OR_METADATA, EVENT, FINE, FINE_LABEL, FINER, FINER_LABEL, FINEST, FINEST_LABEL, INFO, INFO_LABEL, JPA, JPARS, loggerCatagories, METADATA, METAMODEL, MISC, MONITORING, MOXY, OFF, OFF_LABEL, PROCESSOR, PROPAGATION, PROPERTIES, QUERY, SEQUENCING, SERVER, SEVERE, SEVERE_LABEL, SQL, TRANSACTION, WARNING, WARNING_LABEL, WEAVER| Constructor and Description |
|---|
SLF4JLogger()
Creates an instance of EclipseLink logger bridge over SLF4J
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLevel()
Get the logging level for the default logging category.
|
int |
getLevel(java.lang.String categoryName)
Get the logging level for the specified logging category.
|
void |
log(SessionLogEntry logEntry)
PUBLIC:
Log a SessionLogEntry
|
void |
setLevel(int level)
Set the logging level for the default logging category.
|
void |
setLevel(int level,
java.lang.String categoryName)
Set the logging level for the specified logging category.
|
boolean |
shouldLog(int level)
Check if a message of the given level would actually be logged under logging level for the default logging
category.
|
boolean |
shouldLog(int level,
java.lang.String categoryName)
Check if a message of the given level would actually be logged under logging level for the specified logging
category.
|
clone, config, fine, finer, finest, getDateFormat, getDefaultLoggingLevel, getLevelString, getLog, getSession, getWriter, info, isOff, log, log, log, log, log, log, log, log, log, log, log, log, log, logThrowable, logThrowable, setDateFormat, setLog, setSession, setShouldDisplayData, setShouldLogExceptionStackTrace, setShouldPrintConnection, setShouldPrintDate, setShouldPrintSession, setShouldPrintThread, setWriter, setWriter, severe, shouldDisplayData, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, throwing, translateLoggingLevelToString, translateStringToLoggingLevel, warningpublic static final java.lang.String ECLIPSELINK_NAMESPACE
public SLF4JLogger()
public int getLevel()
getLevel in interface SessionLoggetLevel in class AbstractSessionLogpublic int getLevel(java.lang.String categoryName)
getLevel in interface SessionLoggetLevel in class AbstractSessionLogcategoryName - The String representation of an EclipseLink logging category.public void setLevel(int level)
setLevel in interface SessionLogsetLevel in class AbstractSessionLoglevel - The logging level to be set.public void setLevel(int level,
java.lang.String categoryName)
setLevel in interface SessionLogsetLevel in class AbstractSessionLoglevel - The logging level to be set.categoryName - The String representation of an EclipseLink logging category.public boolean shouldLog(int level)
shouldLog in interface SessionLogshouldLog in class AbstractSessionLoglevel - Message logging level.true if the given message logging level will be logged or false otherwise.public boolean shouldLog(int level,
java.lang.String categoryName)
shouldLog in interface SessionLogshouldLog in class AbstractSessionLoglevel - Message logging level.categoryName - The String representation of an EclipseLink logging category.true if the given message logging level will be logged or false otherwise.public void log(SessionLogEntry logEntry)
Log a SessionLogEntry
log in interface SessionLoglog in class AbstractSessionLoglogEntry - SessionLogEntry that holds all the information for an EclipseLink logging event