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
Related concepts
Issues for logging in a non-default location
Related tasks
Using the logDevice=logDirectoryPath attribute
Related reference
Example of moving a log manually