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, writer

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    log(org.eclipse.persistence.logging.SessionLogEntry sessionLogEntry)
     
    boolean
    Show bound parameters in EclipseLink logging (JIPI-5)
    boolean
    shouldLog(int level, String category)
     

    Methods 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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JBossLogger

      public JBossLogger()
  • Method Details

    • log

      public void log(org.eclipse.persistence.logging.SessionLogEntry sessionLogEntry)
      Specified by:
      log in interface org.eclipse.persistence.logging.SessionLog
      Specified by:
      log in class org.eclipse.persistence.logging.AbstractSessionLog
    • shouldLog

      public boolean shouldLog(int level, String category)
      Specified by:
      shouldLog in interface org.eclipse.persistence.logging.SessionLog
      Overrides:
      shouldLog in class org.eclipse.persistence.logging.AbstractSessionLog
    • shouldDisplayData

      public boolean shouldDisplayData()
      Show bound parameters in EclipseLink logging (JIPI-5)
      Specified by:
      shouldDisplayData in interface org.eclipse.persistence.logging.SessionLog
      Overrides:
      shouldDisplayData in class org.eclipse.persistence.logging.AbstractSessionLog
      Returns:
      true to show bind parameters