Specifies name of the file to which the error log is written. If the file name is relative, it is taken as relative to the system directory.
If this property is set, the derby.stream.error.method and derby.stream.error.field properties are ignored.
derby.log.
derby.stream.error.file=error.txt
This property is static; if you change it while Derby is running, the change does not take effect until you reboot.