LogFileMode Property

Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
DatabaseEnvironment..::.LogFileMode Property
DatabaseEnvironment Class See Also

The absolute file mode for created log files. This property is only useful for the rare Berkeley DB application that does not control its umask value.

Namespace: BerkeleyDB
Assembly: libdb_dotnet48 (in libdb_dotnet48.dll) Version: 4.8.24.0

# Syntax

C#
    public int LogFileMode { get; set; }

Visual Basic (Declaration)
    Public Property LogFileMode As Integer

Visual C++
    public:
    property int LogFileMode {
    	int get ();
    	void set (int value);
    }

# Remarks

Normally, if Berkeley DB applications set their umask appropriately, all processes in the application suite will have read permission on the log files created by any process in the application suite. However, if the Berkeley DB application is a library, a process using the library might set its umask to a value preventing other processes in the application suite from reading the log files it creates. In this rare case, this property can be used to set the mode of created log files to an absolute value.

# See Also

DatabaseEnvironment Class
BerkeleyDB Namespace