derby.stream.error.method The derby.stream.error.method property specifies a static method that returns a stream to which the error log is written. derby.stream.error.method property Error logredirecting to a stream

Specify the method using the fully qualified name of the class, then a dot (.) and then the method name. The method must be public and static. Its return type can be either java.io.OutputStream or java.io.Writer. will not call the close() method of the object returned by the method.

The method is called once at boot time, and the return value is used for the lifetime of . If the method returns null, the error stream defaults to the system error stream. If the method does not exist or is inaccessible, the error stream defaults to the system error stream (java.lang.System.err).

If the value of this property is set, the property derby.stream.error.field is ignored.

If you specify this property, the property setting appears in the error log.

Default

Not set.

Example derby.stream.error.method=java.sql.DriverManager.getLogStream
Scope

system-wide

Dynamic or static

This property is static; if you change it while is running, the change does not take effect until you reboot.