Example of creating a log in a non-default location The following database connection URL creates a database in the directory d:/mydatabases, but puts the database log directory in h:/janets/tourslog. jdbc:derby:d:/mydatabases/toursDB; create=true;logDevice=h:/janets/tourslog