|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdbc.driver.OracleLog
public class OracleLog
TRACE is a static variable that enables/ disables the invocation of the print calls during run-time. This static variable can be changed to 'static final' to allow the print calls to be compiled out completely.
Logging can also be controlled/filtered by using Java system properties. Note that system properties only work in Java applications but not in Applets. Note that the system propeties are examined once when the OracleLog class is loaded. These properties are listed in the following:
Field Summary | |
---|---|
static java.util.logging.Level |
INTERNAL_ERROR
|
static boolean |
TRACE
|
static java.util.logging.Level |
TRACE_1
|
static java.util.logging.Level |
TRACE_10
|
static java.util.logging.Level |
TRACE_16
|
static java.util.logging.Level |
TRACE_20
|
static java.util.logging.Level |
TRACE_30
|
static java.util.logging.Level |
TRACE_32
|
Constructor Summary | |
---|---|
OracleLog()
|
Method Summary | |
---|---|
static java.lang.String |
argument()
|
static java.lang.String |
argument(boolean x)
|
static java.lang.String |
argument(byte x)
|
static java.lang.String |
argument(double x)
|
static java.lang.String |
argument(float x)
|
static java.lang.String |
argument(int x)
|
static java.lang.String |
argument(long x)
|
static java.lang.String |
argument(java.lang.Object x)
|
static java.lang.String |
argument(short x)
|
static byte[] |
charsToUcs2Bytes(char[] chars,
int nchars,
int offset)
Deprecated. when using jdk 1.4. Use java.util.logging instead. |
static boolean |
isDebugZip()
Check if the Oracle Jdbc zip/jar file being used has the logging facility avaliable. |
static boolean |
isEnabled()
Check if logging is enabled. |
static boolean |
registerClassNameAndGetCurrentTraceSetting(java.lang.Class classObj)
|
static void |
setTrace(boolean enable)
Set the tracing enable variable. |
static void |
setupFromSystemProperties()
This method uses System.getProperty() to read properties to control logging. |
static java.lang.String |
toHex(byte value)
|
static java.lang.String |
toHex(byte[] value)
|
static java.lang.String |
toHex(byte[] value,
int length)
|
static java.lang.String |
toHex(int value)
|
static java.lang.String |
toHex(long value,
int bytes)
|
static java.lang.String |
toHex(short value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean TRACE
public static final java.util.logging.Level INTERNAL_ERROR
public static final java.util.logging.Level TRACE_1
public static final java.util.logging.Level TRACE_10
public static final java.util.logging.Level TRACE_16
public static final java.util.logging.Level TRACE_20
public static final java.util.logging.Level TRACE_30
public static final java.util.logging.Level TRACE_32
Constructor Detail |
---|
public OracleLog()
Method Detail |
---|
public static boolean isDebugZip()
public static boolean isEnabled()
public static boolean registerClassNameAndGetCurrentTraceSetting(java.lang.Class classObj)
public static void setTrace(boolean enable)
public static void setupFromSystemProperties()
public static java.lang.String argument()
public static java.lang.String argument(boolean x)
public static java.lang.String argument(byte x)
public static java.lang.String argument(short x)
public static java.lang.String argument(int x)
public static java.lang.String argument(long x)
public static java.lang.String argument(float x)
public static java.lang.String argument(double x)
public static java.lang.String argument(java.lang.Object x)
public static byte[] charsToUcs2Bytes(char[] chars, int nchars, int offset)
public static java.lang.String toHex(long value, int bytes)
public static java.lang.String toHex(byte value)
public static java.lang.String toHex(short value)
public static java.lang.String toHex(int value)
public static java.lang.String toHex(byte[] value, int length)
public static java.lang.String toHex(byte[] value)
|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |