public interface Diagnosable
| Modifier and Type | Method and Description |
|---|---|
default void |
beginCurrentSql(java.lang.String sql)
Set the current SQL support logging a specific SQL.
|
default <T extends java.lang.Throwable> |
debug(java.util.logging.Level level,
oracle.jdbc.diagnostics.SecurityLabel securityLabel,
java.lang.String className,
java.lang.String methodName,
java.lang.String publicMessage,
java.lang.String privateMessage,
T thrown,
java.lang.Object... args)
If dynamic trace is enabled, creates an OracleLogRecord and passes it to the
java.util.logging.Logger configured for this Diagnosable.
|
default <T extends java.lang.Throwable> |
debug(java.util.logging.Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String publicMessage,
java.lang.String privateMessage,
T thrown,
java.lang.Object... args)
For compatibility with older code that does not have a SecurityLabel...
|
default void |
endCurrentSql()
Restore the current SQL support logging a specific SQL.
|
default java.lang.Object |
format(oracle.jdbc.clio.annotations.Format.Style f,
java.lang.Object value,
long... args)
Return an Object that will format the value as specified.
|
default Diagnosable |
getDiagnosable()
Only used by the default methods of this interface.
|
default boolean |
isLoggingLevelFinest()
Is current logging level FINEST?
This method allows to skip traces/debugs with expensive formatting,
with 'if (isLoggingLevelFinest()) trace(...);'
|
default void |
resumeLogging()
Resume trace and debug logging after it is temporarily suspended by
calling suspendLogging.
|
default java.lang.Object |
secure(java.lang.Object value)
Return a secure representation for the value.
|
default void |
suspendLogging()
Temporarily suspend trace and debug logging.
|
default <T extends java.lang.Throwable> |
trace(java.util.logging.Level level,
oracle.jdbc.diagnostics.SecurityLabel securityLabel,
java.lang.String className,
java.lang.String methodName,
java.lang.String publicMessage,
java.lang.String privateMessage,
T thrown,
java.lang.Object... args)
If diagnose first failure is enabled store an OracleLogRecord in the appropriate
ring buffer.
|
default <T extends java.lang.Throwable> |
trace(java.util.logging.Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String publicMessage,
java.lang.String privateMessage,
T thrown,
java.lang.Object... args)
For compatibility with older code that does not have a SecurityLabel...
|
default java.lang.Object secure(java.lang.Object value)
value - the value to return if sensitive mode is enabled
return a representation that displays the value only if sensitive mode is enabled when
this method is calleddefault java.lang.Object format(oracle.jdbc.clio.annotations.Format.Style f,
java.lang.Object value,
long... args)
f - value - args - default <T extends java.lang.Throwable> T trace(java.util.logging.Level level,
oracle.jdbc.diagnostics.SecurityLabel securityLabel,
java.lang.String className,
java.lang.String methodName,
java.lang.String publicMessage,
java.lang.String privateMessage,
T thrown,
java.lang.Object... args)
level - log levelsecurityLabel - security labelclassName - the name of a class from which trace() is calledmethodName - the name of a method from which trace() is calledpublicMessage - some public messageprivateMessage - some private message (null in the 1st version)thrown - exception thrown (null for entering and returning calls, non-null for throwing calls)args - caller method's args, if is called in "entering" contextdefault <T extends java.lang.Throwable> T debug(java.util.logging.Level level,
oracle.jdbc.diagnostics.SecurityLabel securityLabel,
java.lang.String className,
java.lang.String methodName,
java.lang.String publicMessage,
java.lang.String privateMessage,
T thrown,
java.lang.Object... args)
level - log levelsecurityLabel - security labelclassName - the name of a class from which trace() is calledmethodName - the name of a method from which trace() is calledpublicMessage - some public messageprivateMessage - some private message (null in the 1st version)thrown - exception thrown (null for entering and returning calls, non-null for throwing calls)args - caller method's args, if is called in "entering" contextdefault <T extends java.lang.Throwable> T trace(java.util.logging.Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String publicMessage,
java.lang.String privateMessage,
T thrown,
java.lang.Object... args)
default <T extends java.lang.Throwable> T debug(java.util.logging.Level level,
java.lang.String className,
java.lang.String methodName,
java.lang.String publicMessage,
java.lang.String privateMessage,
T thrown,
java.lang.Object... args)
default void suspendLogging()
default void resumeLogging()
default void beginCurrentSql(java.lang.String sql)
sql - Must be origianl (user specified) SQLdefault void endCurrentSql()
default boolean isLoggingLevelFinest()
default Diagnosable getDiagnosable()