Using Logging
Using the SpatialManager class, you can turn on logging, for example to a file /tmp/spatial.log. You can alternatively send formatted log records to an existing writer object.
To turn logging on
SpatialManager.setLogWriter("/tmp/spatial.log");
SpatialManager.setLogLevel(Logger.WARNING);
To turn logging off
SpatialManager.setLogLevel(Logger.OFF);