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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
entering
(String sourceClass, String sourceMethod, InputStream in) Enteringstatic void
Enteringstatic void
entering
(SessionLog sessionLog, String sourceClass, String sourceMethod, InputStream in) Enteringstatic void
entering
(SessionLog sessionLog, String sourceClass, String sourceMethod, Object[] params) Enteringstatic void
Errorstatic void
error
(SessionLog sessionLog, String message, Object[] params) Errorstatic void
Exceptionstatic void
exception
(SessionLog sessionLog, String message, Object[] params, Throwable exc) Exceptionstatic void
Exitingstatic void
exiting
(String sourceClass, String sourceMethod, PersistenceContext context, Object object, MediaType mediaType) Exitingstatic void
exiting
(SessionLog sessionLog, String sourceClass, String sourceMethod, Object[] params) Exitingstatic void
exiting
(SessionLog sessionLog, String sourceClass, String sourceMethod, PersistenceContext context, Object object, MediaType mediaType) Exitingstatic void
Finestatic void
fine
(SessionLog sessionLog, String message, Object[] params) Finestatic void
Fineststatic void
finest
(SessionLog sessionLog, String message, Object[] params) Fineststatic boolean
static boolean
isLoggableFinest
(SessionLog sessionLog) static void
setLogLevel
(Level level) Sets the log levelstatic void
setLogLevel
(SessionLog sessionLog, int level) Sets the log levelstatic void
Warningstatic void
warning
(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
-