derby.stream.error.method Error logredirecting to a stream derby.stream.error.method
Function

Specifies a static method that returns a stream to which the error log is written.

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.

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.