Can you confirm that "log" file still gets created by this test program?
<objectdb>
<general>
<temp path="$temp/ObjectDb" threshold="64mb" />
<network inactivity-timeout="0" />
<url-history size="0" user="false" password="false" />
<log path="" max="8mb" stdout="false" stderr="false" />
<log-archive path="$objectdb/log/archive/" retain="90" />
<logger name="*" level="info" />
</general>
</objectdb>
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Properties;
public class Test{
public static void main(String[] args){
String currentDirectory = System.getProperty("user.dir", ".");
System.out.format("Current Directory: %s%n", currentDirectory);
Path objectDbConFile = Paths.get(currentDirectory, "objectdb.conf");
if(Files.exists(objectDbConFile)) System.out.println("objectdb.config FOUND"); else System.out.println
("objectdb.config NOT found");
Path logDirectory = Paths.get(currentDirectory, "log");
if(Files.exists(logDirectory)) System.out.println("log EXISTS BEFORE TEST"); else System.out.println
("log does NOT exist before test");
System.setProperty("objectdb.home", currentDirectory); // Sets %objectdb environment variable
System.setProperty("objectdb.conf", objectDbConFile.toString());
Properties properties = new Properties();
properties.setProperty("javax.jdo.PersistenceManagerFactoryClass", "com.objectdb.jdo.PMF");
properties.setProperty("javax.jdo.option.ConnectionURL", "$objectdb/local.odb");
PersistenceManagerFactory persistenceManagerFactory = JDOHelper.getPersistenceManagerFactory(properties);
PersistenceManager persistenceManager = persistenceManagerFactory.getPersistenceManager();
persistenceManager.close();
persistenceManagerFactory.close();
if(Files.exists(logDirectory)) System.out.println("ObjectDB created log directory"); else System
.out.println("ObjectDB did NOT create log directory");
}
}
Current Directory: C:\Users\BoydEdmondson\Documents\Programming\UniLogical\ObjectDbTest
objectdb.config FOUND
log does NOT exist before test
ObjectDB created log directory