|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jdbc.driver.OracleLog
Oracle Jdbc logging facility.
The Oracle Jdbc logging facility allows users to enable/disable logging and control log volume during run-time. If you are using the client-side drivers (ie. the JDBC OCI and JDBC Thin drivers), this facility is available only when running with the debug jar files. On the other hand, if you are using the server-side drivers, this facility is built in.
Constructor Summary | |
OracleLog()
|
Method Summary | |
static void |
enableWarning(boolean enable)
Enable/disable warning messages. |
static java.io.PrintStream |
getLogStream()
Get the logging PrintStream. |
static java.io.PrintWriter |
getLogWriter()
Get the logging PrintWriter. |
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 void |
print(java.lang.Object thisObject,
int module,
int category,
java.lang.String message)
|
static void |
setLogStream(java.io.PrintStream out)
Set the logging PrintStream. |
static void |
setLogVolume(int level)
Set the logging volume level. |
static void |
setLogWriter(java.io.PrintWriter out)
Set the logging PrintWriter. |
static void |
setPrivateTrace(boolean enable)
Set the private tracing enable variable. |
static void |
setupFromSystemProperties()
This method uses System.getProperty() to read properties to control logging. |
static void |
startLogging()
Enable tracing. |
static void |
stopLogging()
Disable tracing. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int MASK_ALL_SET
public static final int MAX_VECTOR_BITS
public static final int MAX_MODULES
public static final int MODULE_ALL
public static final int MODULE_DRIVER
public static final int MODULE_DBACCESS
public static final int MODULE_DBCONV
public static final int MODULE_JOLT
public static final int MODULE_PICKLE
public static final int MODULE_JTTC
public static final int MODULE_DATUM
public static final int MODULE_KPRB
public static final int MODULE_XA
public static final int MODULE_SQLJ
public static final int MODULE_JOCI
public static final int MODULE_JPUB
public static final int MODULE_TOTAL
public static final java.lang.String[] ModuleName
public static final int SUBMOD_ALL
public static final int SUBMOD_DEFAULT
public static final int SUBMOD_DRVR_LOG
public static final int SUBMOD_DRVR_ERR
public static final int SUBMOD_DRVR_CONN
public static final int SUBMOD_DRVR_STMT
public static final int SUBMOD_DRVR_RSET
public static final int SUBMOD_DRVR_UTIL
public static final int SUBMOD_DRVR_SQL
public static final int SUBMOD_DRVR_RWST
public static final int SUBMOD_DRVR_POOL
public static final int SUBMOD_DRVR_SCCH
public static final int SUBMOD_DBAC_DATA
public static final int SUBMOD_PCKL_INIT
public static final int SUBMOD_PCKL_TYPE
public static final int SUBMOD_PCKL_PCKL
public static final int SUBMOD_PCKL_UNPK
public static final int SUBMOD_PCKL_CONV
public static final int SUBMOD_PCKL_DESC
public static final int SUBMOD_PCKL_PARS
public static final int SUBMOD_PCKL_SERL
public static final int SUBMOD_JOLT_COMM
public static final int SUBMOD_JOLT_BASE
public static final int SUBMOD_JOLT_JDBC
public static final int SUBMOD_JTTC_BASE
public static final int SUBMOD_JTTC_TX
public static final int SUBMOD_JTTC_RX
public static final int SUBMOD_JTTC_MARS
public static final int SUBMOD_JTTC_UNMA
public static final int SUBMOD_JTTC_CONN
public static final int SUBMOD_JTTC_COMM
public static final int SUBMOD_JTTC_DBAC
public static final int SUBMOD_JTTC_LOBS
public static final int SUBMOD_JTTC_ADTS
public static final int SUBMOD_KPRB_ERR
public static final int SUBMOD_KPRB_CONN
public static final int SUBMOD_KPRB_STMT
public static final int SUBMOD_KPRB_RSET
public static final int SUBMOD_KPRB_UTIL
public static final int SUBMOD_KPRB_SQL
public static final int SUBMOD_KPRB_DATA
public static final int SUBMOD_KPRB_CONV
public static final int SUBMOD_XA_DSRC
public static final int SUBMOD_XA_CONN
public static final int SUBMOD_XA_RSRC
public static final int SUBMOD_XA_ARGS
public static final int SUBMOD_XA_EXC
public static final int SUBMOD_XA_XID
public static final int SUBMOD_XA_HCON
public static final int SUBMOD_XA_HCCB
public static final int SUBMOD_XA_HRSC
public static final int SUBMOD_SQLJ_RUN
public static final int SUBMOD_JOCI_ACCS
public static final int SUBMOD_JOCI_DSET
public static final int SUBMOD_JOCI_ITEM
public static final int SUBMOD_JOCI_STMT
public static final int SUBMOD_JOCI_TYPE
public static final int SUBMOD_JOCI_ENV
public static final int SUBMOD_JPUB_RUNTIME
public static final int CATEGORY_ALL
public static final int USER_OPER
public static final int PROG_ERROR
public static final int ERROR
public static final int WARNING
public static final int FUNCTION
public static final int DEBUG1
public static final int DEBUG2
public static final int SQL_STR
public static final int CATEGORY_TOTAL
public static final java.lang.String[] CategoryName
public static final int CATEGORY_LOW_VOL
public static final int CATEGORY_MED_VOL
public static final int CATEGORY_HIGH_VOL
public static final int FIELD_NONE
public static final int FIELD_ALL
public static final int FIELD_NUMBER
public static final int FIELD_TIME
public static final int FIELD_MODULE
public static final int FIELD_SUBMOD
public static final int FIELD_CATEGORY
public static final int FIELD_OBJECT
public static final int FIELD_THREAD
public static final int FIELD_DEFAULT
public static boolean TRACE
public static boolean PRIVATE_TRACE
Constructor Detail |
public OracleLog()
Method Detail |
public static boolean isDebugZip()
public static boolean isEnabled()
public static void setLogWriter(java.io.PrintWriter out)
This method is also used to enable and disable logging. Logging can only be enabled if a debug zip/jar file is being used.
out
- PrintWriter object (use null to disable logging).public static java.io.PrintWriter getLogWriter()
public static void setLogStream(java.io.PrintStream out)
out
- PrintStream (use null to disable logging).public static java.io.PrintStream getLogStream()
public static void enableWarning(boolean enable)
enable
- use 'true' to enable warning messages, or 'false'
to disable. The default is 'true'.public static void setLogVolume(int level)
level
- specifies one of the volume levels:
1 - low, 2 - medium, 3 - high.public static void startLogging()
public static void stopLogging()
public static void setPrivateTrace(boolean enable)
public static void setupFromSystemProperties()
public static void print(java.lang.Object thisObject, int module, int category, java.lang.String message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |