Cloudscape Properties
Page 44 of 47

cloudscape.stream.error.method

Function

Specifies a static method that returns a stream to which the Cloudscape 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. Cloudscape will not call the close() method of the object returned by the method.

The method is called once at Cloudscape boot time, and the return value is used for the lifetime of Cloudscape. 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 cloudscape.stream.error.field is ignored.

Default

Not set.

Example

cloudscape.stream.error.method=java.sql.DriverManager.
getLogStream

Scope

system-wide

Dynamic or Static

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