You can put a database's log on a separate device when you create it.
For more information, see the Derby Server and Administration Guide.