traceDirectory=path attribute

Function

Specifies a directory to which the Derby Network Client will send JDBC trace information. If the program or session has multiple connections, the Network Client creates a separate file for each connection. By default, the files are named _driver_0, _driver_1, and so on. Use the traceFile=path attribute to specify a file name for the trace file.

If the directory does not exist, Derby issues an error message. If you do not specify an absolute path name, the directory is assumed to be relative to the current directory.

For more information about tracing, see "Network client tracing" in the Derby Server and Administration Guide. See traceFile=path, traceFileAppend=true, and traceLevel=value for other attributes related to tracing.

Combining with other attributes

You can combine this attribute with other attributes.

Examples

-- enable tracing on an existing database that will have multiple connections
jdbc:derby://localhost:1527/mydb;traceDirectory=/home/mydir/mydbtracedir
-- specify a trace file name within the directory
jdbc:derby://localhost:1527/mydb;traceDirectory=/home/mydir/mydbtracedir;traceFile=trace.out
-- append to the default trace file
jdbc:derby://localhost:1527/mydb;traceDirectory=/home/mydir/mydbtracedir;traceFileAppend=true