Class JPARSLogger
- java.lang.Object
-
- org.eclipse.persistence.jpa.rs.util.JPARSLogger
-
public class JPARSLogger extends java.lang.ObjectLogger for EclipseLink JPA-RS related functionality. Publishes messages under theSessionLog.JPARScategory.
-
-
Constructor Summary
Constructors Constructor Description JPARSLogger()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidentering(java.lang.String sourceClass, java.lang.String sourceMethod, java.io.InputStream in)Enteringstatic voidentering(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)Enteringstatic voidentering(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.io.InputStream in)Enteringstatic voidentering(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)Enteringstatic voiderror(java.lang.String message, java.lang.Object[] params)Errorstatic voiderror(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)Errorstatic voidexception(java.lang.String message, java.lang.Object[] params, java.lang.Throwable exc)Exceptionstatic voidexception(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params, java.lang.Throwable exc)Exceptionstatic voidexiting(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)Exitingstatic voidexiting(java.lang.String sourceClass, java.lang.String sourceMethod, PersistenceContext context, java.lang.Object object, javax.ws.rs.core.MediaType mediaType)Exitingstatic voidexiting(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)Exitingstatic voidexiting(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, PersistenceContext context, java.lang.Object object, javax.ws.rs.core.MediaType mediaType)Exitingstatic voidfine(java.lang.String message, java.lang.Object[] params)Finestatic voidfine(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)Finestatic voidfinest(java.lang.String message, java.lang.Object[] params)Fineststatic voidfinest(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)Fineststatic booleanisLoggableFinest()static booleanisLoggableFinest(SessionLog sessionLog)static voidsetLogLevel(java.util.logging.Level level)Sets the log levelstatic voidsetLogLevel(SessionLog sessionLog, int level)Sets the log levelstatic voidwarning(java.lang.String message, java.lang.Object[] params)Warningstatic voidwarning(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
-
-