@Override
  public void log(SessionLogEntry sessionLogEntry) {
    // use the EclipseLink log level to determine if this should be logged
    int level = sessionLogEntry.getLevel();
    if (!shouldLog(level, sessionLogEntry.getNameSpace())) {
      return;
    }

    switch (level) {
      case SessionLog.ALL:
      case SessionLog.FINER:
      case SessionLog.FINEST:
        JPA_LOG.trace(LOG_TEMPLATE, "Trace", getSupplementDetailString(sessionLogEntry),
            formatMessage(sessionLogEntry));
        return;
      case SessionLog.INFO:
      case SessionLog.CONFIG:
        JPA_LOG.info(LOG_TEMPLATE, "Info", getSupplementDetailString(sessionLogEntry),
            formatMessage(sessionLogEntry));
        return;
      case SessionLog.FINE:
        JPA_LOG.debug(LOG_TEMPLATE, "Debug", getSupplementDetailString(sessionLogEntry),
            formatMessage(sessionLogEntry));
        return;
      case SessionLog.SEVERE:
        // always log
        JPA_LOG.error(LOG_TEMPLATE, "Error", getSupplementDetailString(sessionLogEntry),
            formatMessage(sessionLogEntry));
        return;
      case SessionLog.WARNING:
        JPA_LOG.warn(LOG_TEMPLATE, "Warning", getSupplementDetailString(sessionLogEntry),
            formatMessage(sessionLogEntry));
        return;
      case SessionLog.OFF:
        // never log
        return;
      default:
        JPA_LOG.debug(LOG_TEMPLATE, "Unknown", getSupplementDetailString(sessionLogEntry),
            formatMessage(sessionLogEntry));
        return;
    }
  }
The log template to use to create statements similar to EclipseLink's
internal logger.
ambari-server/src/main/java/org/apache/ambari/server/logging/EclipseLinkLogger.java