Package org.eclipse.persistence.logging

Examples of org.eclipse.persistence.logging.EclipseLinkLogRecord


        getJavaLogLevel(sessionLogEntry.getLevel())));
  }

  // get a log record for the given session log entry
  private EclipseLinkLogRecord getLogRecord(SessionLogEntry sessionLogEntry, Level level) {
    EclipseLinkLogRecord logRecord =
        new EclipseLinkLogRecord(level, formatMessage(sessionLogEntry));

    logRecord.setLoggerName(sessionLogEntry.getNameSpace());
    logRecord.setShouldPrintDate(shouldPrintDate());
    logRecord.setShouldPrintThread(shouldPrintThread());

    Throwable exception = sessionLogEntry.getException();
    if (exception != null) {
      logRecord.setThrown(exception);
      logRecord.setShouldLogExceptionStackTrace(shouldLogExceptionStackTrace());
    }

    if (shouldPrintConnection()) {
      logRecord.setConnection(sessionLogEntry.getConnection());
    }

    if (shouldPrintSession()) {
      logRecord.setSessionString(getSessionString(sessionLogEntry.getSession()));
    }

    return logRecord;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.logging.EclipseLinkLogRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.