Class JPARSLogger
java.lang.Object
org.eclipse.persistence.jpa.rs.util.JPARSLogger
Logger for EclipseLink JPA-RS related functionality.
Publishes messages under the
SessionLog.JPARS category.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidentering(String sourceClass, String sourceMethod, String sessionId, InputStream in) EnteringvoidEnteringvoidErrorvoidExceptionvoidExitingvoidexiting(String sourceClass, String sourceMethod, String sessionId, PersistenceContext context, Object object, MediaType mediaType) ExitingvoidFinevoidFinestbooleanvoidsetLogLevel(int level) Sets the log levelvoidsetSessionLog(SessionLog sessionLog) voidWarning
-
Field Details
-
DEFAULT_LOGGER
-
-
Constructor Details
-
JPARSLogger
-
-
Method Details
-
setSessionLog
-
entering
Entering- Parameters:
sourceClass- the source classsourceMethod- the source methodsessionId- the identifier of the session that generated the log entry ornullwhen no session is availableparams- an array of parameters associated with the log message
-
entering
Entering- Parameters:
sourceClass- the source classsourceMethod- the source methodsessionId- the identifier of the session that generated the log entry ornullwhen no session is availablein- the input stream
-
exiting
Exiting- Parameters:
sourceClass- the source classsourceMethod- the source methodsessionId- the identifier of the session that generated the log entry ornullwhen no session is availableparams- an array of parameters associated with the log message
-
exiting
public void exiting(String sourceClass, String sourceMethod, String sessionId, PersistenceContext context, Object object, MediaType mediaType) Exiting- Parameters:
sourceClass- the source classsourceMethod- the source methodsessionId- the identifier of the session that generated the log entry ornullwhen no session is availablecontext- the contextobject- the objectmediaType- the media type
-
finest
Finest- Parameters:
sessionId- the identifier of the session that generated the log entry ornullwhen no session is availablemessage- the messageparams- parameters
-
fine
Fine- Parameters:
sessionId- the identifier of the session that generated the log entry ornullwhen no session is availablemessage- the messageparams- parameters
-
warning
Warning- Parameters:
sessionId- the identifier of the session that generated the log entry ornullwhen no session is availablemessage- the messageparams- parameters
-
error
Error- Parameters:
sessionId- the identifier of the session that generated the log entry ornullwhen no session is availablemessage- the messageparams- parameters
-
exception
Exception- Parameters:
sessionId- the identifier of the session that generated the log entry ornullwhen no session is availablemessage- the messageparams- parametersexc- the throwable
-
setLogLevel
public void setLogLevel(int level) Sets the log level- Parameters:
level- the new log level
-
isLoggableFinest
public boolean isLoggableFinest()- Returns:
- true if log level is set to
SessionLog.FINEST
-