Package org.jipijapa.eclipselink
Class JBossLogger
java.lang.Object
org.eclipse.persistence.logging.AbstractSessionLog
org.jipijapa.eclipselink.JBossLogger
- All Implemented Interfaces:
Cloneable,org.eclipse.persistence.logging.SessionLog
public class JBossLogger
extends org.eclipse.persistence.logging.AbstractSessionLog
JBossLogger integrates Eclipse's logging with JBoss logger, so you can
configure log levels via the server and get the same log formatting
as everything else.
See https://community.jboss.org/wiki/HowToUseEclipseLinkWithAS7
-
Field Summary
Fields inherited from class org.eclipse.persistence.logging.AbstractSessionLog
CONFIG_PREFIX, CONNECTION_STRING, DATE_FORMAT_STR, dateFormat, defaultLog, FINE_PREFIX, FINER_PREFIX, FINEST_PREFIX, INFO_PREFIX, level, session, SEVERE_PREFIX, shouldDisplayData, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, THREAD_STRING, TOPLINK_PREFIX, WARNING_PREFIX, writerFields inherited from interface org.eclipse.persistence.logging.SessionLog
ALL, ALL_LABEL, CACHE, CONFIG, CONFIG_LABEL, CONNECTION, DBWS, DDL, DMS, EJB, 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, THREAD, TRANSACTION, WARNING, WARNING_LABEL, WEAVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlog(org.eclipse.persistence.logging.SessionLogEntry sessionLogEntry) booleanShow bound parameters in EclipseLink logging (JIPI-5)booleanMethods inherited from class org.eclipse.persistence.logging.AbstractSessionLog
clone, config, fine, finer, finest, formatMessage, getConnectionString, getDateFormat, getDateString, getDefaultLoggingLevel, getLevel, getLevel, getLevelString, getLog, getSession, getSessionString, getSupplementDetailString, getThreadString, getWriter, info, isOff, log, log, log, log, log, log, log, log, log, log, log, log, log, logThrowable, logThrowable, printPrefixString, setDateFormat, setLevel, setLevel, setLog, setSession, setShouldDisplayData, setShouldLogExceptionStackTrace, setShouldPrintConnection, setShouldPrintDate, setShouldPrintSession, setShouldPrintThread, setWriter, setWriter, severe, shouldLog, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, throwing, translateLoggingLevelToString, translateStringToLoggingLevel, warning
-
Constructor Details
-
JBossLogger
public JBossLogger()
-
-
Method Details
-
log
public void log(org.eclipse.persistence.logging.SessionLogEntry sessionLogEntry) - Specified by:
login interfaceorg.eclipse.persistence.logging.SessionLog- Specified by:
login classorg.eclipse.persistence.logging.AbstractSessionLog
-
shouldLog
- Specified by:
shouldLogin interfaceorg.eclipse.persistence.logging.SessionLog- Overrides:
shouldLogin classorg.eclipse.persistence.logging.AbstractSessionLog
-
shouldDisplayData
public boolean shouldDisplayData()Show bound parameters in EclipseLink logging (JIPI-5)- Specified by:
shouldDisplayDatain interfaceorg.eclipse.persistence.logging.SessionLog- Overrides:
shouldDisplayDatain classorg.eclipse.persistence.logging.AbstractSessionLog- Returns:
- true to show bind parameters
-