The path of a directory to be used as the location of logging files. Log files created by the Log Manager subsystem will be created in this directory.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet52 (in libdb_dotnet52.dll) Version:


public string Dir
Visual Basic (Declaration)
Public Dir As String
Visual C++
String^ Dir


If no logging directory is specified, log files are created in the environment home directory. See Berkeley DB File Naming in the Programmer's Reference Guide for more information.

For the greatest degree of recoverability from system or application failure, database files and log files should be located on separate physical devices.

If the database environment already exists when Open(String, DatabaseEnvironmentConfig) is called, the value of Dir must be consistent with the existing environment or corruption can occur.

See Also