public class EclipseLinkLogger
extends org.eclipse.persistence.logging.AbstractSessionLog
implements org.eclipse.persistence.logging.SessionLog
EclipseLinkLogger
is a bridge between EclipseLink's internal
logging framework and SLF4J. EclipseLink does not have a rolling log, which
means that the standard output file can grow large and cause disk space
issues. This logger translates the following log levels:
EclipseLink | SLF4J |
ALL | TRACE |
FINER | TRACE |
FINEST | TRACE |
FINE | DEBUG |
INFO | INFO |
CONFIG | INFO |
SEVERE | ERROR |
WARNING | WARN |
OFF | - |
persistence.xml
.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
ALL, ALL_LABEL, CACHE, CONFIG, CONFIG_LABEL, CONNECTION, 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, OFF, OFF_LABEL, PROPAGATION, PROPERTIES, QUERY, SEQUENCING, SERVER, SEVERE, SEVERE_LABEL, SQL, TRANSACTION, WARNING, WARNING_LABEL, WEAVER
Constructor and Description |
---|
EclipseLinkLogger() |
Modifier and Type | Method and Description |
---|---|
void |
log(org.eclipse.persistence.logging.SessionLogEntry sessionLogEntry) |
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, shouldDisplayData, shouldLog, shouldLog, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, throwing, translateLoggingLevelToString, translateStringToLoggingLevel, warning
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, config, fine, finer, finest, getLevel, getLevel, getLevelString, getSession, getWriter, info, log, log, log, log, log, log, log, log, log, log, log, log, log, logThrowable, logThrowable, setLevel, setLevel, setSession, setShouldDisplayData, setShouldLogExceptionStackTrace, setShouldPrintConnection, setShouldPrintDate, setShouldPrintSession, setShouldPrintThread, setWriter, severe, shouldDisplayData, shouldLog, shouldLog, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, throwing, warning
Copyright © 2022 Apache Software Foundation. All rights reserved.