Class JPARSLogger
- java.lang.Object
-
- org.eclipse.persistence.jpa.rs.util.JPARSLogger
-
public class JPARSLogger extends 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(String sourceClass, String sourceMethod, InputStream in)
Enteringstatic void
entering(String sourceClass, String sourceMethod, Object[] params)
Enteringstatic void
entering(SessionLog sessionLog, String sourceClass, String sourceMethod, InputStream in)
Enteringstatic void
entering(SessionLog sessionLog, String sourceClass, String sourceMethod, Object[] params)
Enteringstatic void
error(String message, Object[] params)
Errorstatic void
error(SessionLog sessionLog, String message, Object[] params)
Errorstatic void
exception(String message, Object[] params, Throwable exc)
Exceptionstatic void
exception(SessionLog sessionLog, String message, Object[] params, Throwable exc)
Exceptionstatic void
exiting(String sourceClass, String sourceMethod, Object[] params)
Exitingstatic void
exiting(String sourceClass, String sourceMethod, PersistenceContext context, Object object, jakarta.ws.rs.core.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, jakarta.ws.rs.core.MediaType mediaType)
Exitingstatic void
fine(String message, Object[] params)
Finestatic void
fine(SessionLog sessionLog, String message, Object[] params)
Finestatic void
finest(String message, Object[] params)
Fineststatic void
finest(SessionLog sessionLog, String message, Object[] params)
Fineststatic boolean
isLoggableFinest()
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
warning(String message, Object[] params)
Warningstatic void
warning(SessionLog sessionLog, String message, Object[] params)
Warning
-
-
-
Method Detail
-
entering
public static void entering(String sourceClass, String sourceMethod, Object[] params)
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
public static void entering(String sourceClass, String sourceMethod, InputStream in)
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
public static void exiting(String sourceClass, String sourceMethod, Object[] params)
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, jakarta.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, String sourceClass, String sourceMethod, PersistenceContext context, Object object, jakarta.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(String message, Object[] params)
Finest- Parameters:
message
- the messageparams
- parameters
-
finest
public static void finest(SessionLog sessionLog, String message, Object[] params)
Finest- Parameters:
sessionLog
- the logmessage
- the messageparams
- parameters
-
fine
public static void fine(String message, Object[] params)
Fine- Parameters:
message
- the messageparams
- parameters
-
fine
public static void fine(SessionLog sessionLog, String message, Object[] params)
Fine- Parameters:
sessionLog
- the logmessage
- the messageparams
- parameters
-
warning
public static void warning(String message, Object[] params)
Warning- Parameters:
message
- the messageparams
- parameters
-
warning
public static void warning(SessionLog sessionLog, String message, Object[] params)
Warning- Parameters:
sessionLog
- the logmessage
- the messageparams
- parameters
-
error
public static void error(String message, Object[] params)
Error- Parameters:
message
- the messageparams
- parameters
-
error
public static void error(SessionLog sessionLog, String message, Object[] params)
Error- Parameters:
sessionLog
- the logmessage
- the messageparams
- parameters
-
exception
public static void exception(String message, Object[] params, Throwable exc)
Exception- Parameters:
message
- the messageparams
- parametersexc
- the throwable
-
exception
public static void exception(SessionLog sessionLog, String message, Object[] params, Throwable exc)
Exception- Parameters:
sessionLog
- the logmessage
- the messageparams
- parametersexc
- the throwable
-
setLogLevel
public static void setLogLevel(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
-
-