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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidentering(String sourceClass, String sourceMethod, InputStream in) Enteringstatic voidEnteringstatic voidentering(SessionLog sessionLog, String sourceClass, String sourceMethod, InputStream in) Enteringstatic voidentering(SessionLog sessionLog, String sourceClass, String sourceMethod, Object[] params) Enteringstatic voidErrorstatic voiderror(SessionLog sessionLog, String message, Object[] params) Errorstatic voidExceptionstatic voidexception(SessionLog sessionLog, String message, Object[] params, Throwable exc) Exceptionstatic voidExitingstatic voidexiting(String sourceClass, String sourceMethod, PersistenceContext context, Object object, MediaType mediaType) Exitingstatic voidexiting(SessionLog sessionLog, String sourceClass, String sourceMethod, Object[] params) Exitingstatic voidexiting(SessionLog sessionLog, String sourceClass, String sourceMethod, PersistenceContext context, Object object, MediaType mediaType) Exitingstatic voidFinestatic voidfine(SessionLog sessionLog, String message, Object[] params) Finestatic voidFineststatic voidfinest(SessionLog sessionLog, String message, Object[] params) Fineststatic booleanstatic booleanisLoggableFinest(SessionLog sessionLog) static voidsetLogLevel(Level level) Sets the log levelstatic voidsetLogLevel(SessionLog sessionLog, int level) Sets the log levelstatic voidWarningstatic voidwarning(SessionLog sessionLog, String message, Object[] params) Warning
-
Constructor Details
-
JPARSLogger
public JPARSLogger()
-
-
Method Details
-
entering
Entering- Parameters:
sourceClass- the source classsourceMethod- the source methodparams- parameters
-
entering
public static void entering(SessionLog sessionLog, String sourceClass, String sourceMethod, Object[] params) Entering- Parameters:
sessionLog- the logsourceClass- the source classsourceMethod- the source methodparams- parameters
-
entering
Entering- Parameters:
sourceClass- the source classsourceMethod- the source methodin- the input stream
-
entering
public static void entering(SessionLog sessionLog, String sourceClass, String sourceMethod, InputStream in) Entering- Parameters:
sessionLog- log receiving the messagesourceClass- the source classsourceMethod- the source methodin- the input stream
-
exiting
Exiting- Parameters:
sourceClass- the source classsourceMethod- the source methodparams- parameters
-
exiting
public static void exiting(SessionLog sessionLog, String sourceClass, String sourceMethod, Object[] params) Exiting- Parameters:
sessionLog- the logsourceClass- the source classsourceMethod- the source methodparams- parameters
-
exiting
public static void exiting(String sourceClass, String sourceMethod, PersistenceContext context, Object object, MediaType mediaType) Exiting- Parameters:
sourceClass- the source classsourceMethod- the source methodcontext- the contextobject- the objectmediaType- the media type
-
exiting
public static void exiting(SessionLog sessionLog, String sourceClass, String sourceMethod, PersistenceContext context, Object object, MediaType mediaType) Exiting- Parameters:
sessionLog- the logsourceClass- the source classsourceMethod- the source methodcontext- the contextobject- the objectmediaType- the media type
-
finest
Finest- Parameters:
message- the messageparams- parameters
-
finest
Finest- Parameters:
sessionLog- the logmessage- the messageparams- parameters
-
fine
Fine- Parameters:
message- the messageparams- parameters
-
fine
Fine- Parameters:
sessionLog- the logmessage- the messageparams- parameters
-
warning
Warning- Parameters:
message- the messageparams- parameters
-
warning
Warning- Parameters:
sessionLog- the logmessage- the messageparams- parameters
-
error
Error- Parameters:
message- the messageparams- parameters
-
error
Error- Parameters:
sessionLog- the logmessage- the messageparams- parameters
-
exception
Exception- Parameters:
message- the messageparams- parametersexc- the throwable
-
exception
Exception- Parameters:
sessionLog- the logmessage- the messageparams- parametersexc- the throwable
-
setLogLevel
Sets the log level- Parameters:
level- the new log level
-
setLogLevel
Sets the log level- Parameters:
sessionLog- the loglevel- the new log level
-
isLoggableFinest
public static boolean isLoggableFinest()- Returns:
- true if log level is set to
SessionLog.FINEST
-
isLoggableFinest
- Parameters:
sessionLog- the log- Returns:
- true if log level is set to
SessionLog.FINEST
-