public class WeaverLogger
extends java.lang.Object
weaver
logger and optionally to standard error output
when org.eclipse.persistence.jpa.weaving.log.stderr
JVM system property is set.
Logger API is based on SessionLog
with SessionLog.WEAVER
as EclipseLink logging category.Constructor and Description |
---|
WeaverLogger()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
log(int level,
java.lang.String messageKey)
Deprecated.
INTERNAL:
Log message with no arguments to EclipseLink
weaver logger and standard error output. |
static void |
log(int level,
java.lang.String messageKey,
java.lang.Object... arguments)
Deprecated.
INTERNAL:
Log message with arguments array to EclipseLink
weaver logger and standard error output. |
static void |
logThrowable(int level,
java.lang.Throwable throwable)
Deprecated.
INTERNAL:
Log
Throwable to EclipseLink weaver logger and standard error output. |
static boolean |
shouldLog(int level)
Deprecated.
INTERNAL:
Check if a message of the given level would actually be logged by EclipseLink
weaver logger
or to standard error output. |
static boolean |
shouldLog(int level,
java.lang.String category)
Deprecated.
INTERNAL:
Check if a message of the given level would actually be logged by EclipseLink logger or to standard error output.
|
public static final boolean shouldLog(int level)
weaver
logger
or to standard error output.level
- The log request level value.true
if message will be logged or false
otherwise.public static final boolean shouldLog(int level, java.lang.String category)
level
- The log request level value.category
- The EclipseLink logging category.true
if message will be logged or false
otherwise.public static final void log(int level, java.lang.String messageKey)
weaver
logger and standard error output.level
- The log request level value.messageKey
- The TraceLocalizationResource
log message key.public static final void log(int level, java.lang.String messageKey, java.lang.Object... arguments)
weaver
logger and standard error output.level
- The log request level value.messageKey
- TraceLocalizationResource
message key.arguments
- Arguments of the log message.public static final void logThrowable(int level, java.lang.Throwable throwable)
Throwable
to EclipseLink weaver
logger and standard error output.level
- The log request level value.exception
- Throwable
to be logged.EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference