Class JPARSLogger
- java.lang.Object
-
- org.eclipse.persistence.jpa.rs.util.JPARSLogger
-
public class JPARSLogger extends java.lang.Object
Logger for EclipseLink JPA-RS related functionality. Publishes messages under theSessionLog.JPARS
category.
-
-
Constructor Summary
Constructors Constructor Description JPARSLogger()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
entering(java.lang.String sourceClass, java.lang.String sourceMethod, java.io.InputStream in)
Enteringstatic void
entering(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
Enteringstatic void
entering(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.io.InputStream in)
Enteringstatic void
entering(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
Enteringstatic void
error(java.lang.String message, java.lang.Object[] params)
Errorstatic void
error(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
Errorstatic void
exception(java.lang.String message, java.lang.Object[] params, java.lang.Throwable exc)
Exceptionstatic void
exception(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params, java.lang.Throwable exc)
Exceptionstatic void
exiting(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
Exitingstatic void
exiting(java.lang.String sourceClass, java.lang.String sourceMethod, PersistenceContext context, java.lang.Object object, javax.ws.rs.core.MediaType mediaType)
Exitingstatic void
exiting(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
Exitingstatic void
exiting(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, PersistenceContext context, java.lang.Object object, javax.ws.rs.core.MediaType mediaType)
Exitingstatic void
fine(java.lang.String message, java.lang.Object[] params)
Finestatic void
fine(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
Finestatic void
finest(java.lang.String message, java.lang.Object[] params)
Fineststatic void
finest(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
Fineststatic boolean
isLoggableFinest()
static boolean
isLoggableFinest(SessionLog sessionLog)
static void
setLogLevel(java.util.logging.Level level)
Sets the log levelstatic void
setLogLevel(SessionLog sessionLog, int level)
Sets the log levelstatic void
warning(java.lang.String message, java.lang.Object[] params)
Warningstatic void
warning(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
Warning
-
-
-
Method Detail
-
entering
public static void entering(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
Entering- Parameters:
sourceClass
- the source classsourceMethod
- the source methodparams
- parameters
-
entering
public static void entering(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
Entering- Parameters:
sessionLog
- the logsourceClass
- the source classsourceMethod
- the source methodparams
- parameters
-
entering
public static void entering(java.lang.String sourceClass, java.lang.String sourceMethod, java.io.InputStream in)
Entering- Parameters:
sourceClass
- the source classsourceMethod
- the source methodin
- the input stream
-
entering
public static void entering(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.io.InputStream in)
Entering- Parameters:
sessionLog
- log receiving the messagesourceClass
- the source classsourceMethod
- the source methodin
- the input stream
-
exiting
public static void exiting(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
Exiting- Parameters:
sourceClass
- the source classsourceMethod
- the source methodparams
- parameters
-
exiting
public static void exiting(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
Exiting- Parameters:
sessionLog
- the logsourceClass
- the source classsourceMethod
- the source methodparams
- parameters
-
exiting
public static void exiting(java.lang.String sourceClass, java.lang.String sourceMethod, PersistenceContext context, java.lang.Object object, javax.ws.rs.core.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, java.lang.String sourceClass, java.lang.String sourceMethod, PersistenceContext context, java.lang.Object object, javax.ws.rs.core.MediaType mediaType)
Exiting- Parameters:
sessionLog
- the logsourceClass
- the source classsourceMethod
- the source methodcontext
- the contextobject
- the objectmediaType
- the media type
-
finest
public static void finest(java.lang.String message, java.lang.Object[] params)
Finest- Parameters:
message
- the messageparams
- parameters
-
finest
public static void finest(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
Finest- Parameters:
sessionLog
- the logmessage
- the messageparams
- parameters
-
fine
public static void fine(java.lang.String message, java.lang.Object[] params)
Fine- Parameters:
message
- the messageparams
- parameters
-
fine
public static void fine(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
Fine- Parameters:
sessionLog
- the logmessage
- the messageparams
- parameters
-
warning
public static void warning(java.lang.String message, java.lang.Object[] params)
Warning- Parameters:
message
- the messageparams
- parameters
-
warning
public static void warning(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
Warning- Parameters:
sessionLog
- the logmessage
- the messageparams
- parameters
-
error
public static void error(java.lang.String message, java.lang.Object[] params)
Error- Parameters:
message
- the messageparams
- parameters
-
error
public static void error(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
Error- Parameters:
sessionLog
- the logmessage
- the messageparams
- parameters
-
exception
public static void exception(java.lang.String message, java.lang.Object[] params, java.lang.Throwable exc)
Exception- Parameters:
message
- the messageparams
- parametersexc
- the throwable
-
exception
public static void exception(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params, java.lang.Throwable exc)
Exception- Parameters:
sessionLog
- the logmessage
- the messageparams
- parametersexc
- the throwable
-
setLogLevel
public static void setLogLevel(java.util.logging.Level level)
Sets the log level- Parameters:
level
- the new log level
-
setLogLevel
public static void setLogLevel(SessionLog sessionLog, int level)
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
public static boolean isLoggableFinest(SessionLog sessionLog)
- Parameters:
sessionLog
- the log- Returns:
- true if log level is set to
SessionLog.FINEST
-
-