Berkeley DB Reference Version 5.3.33

DB_ENV->log_set_config()

#include <db.h>

int
DB_ENV->log_set_config(DB_ENV *dbenv, u_int32_t flags, int onoff);  

The DB_ENV->log_set_config() method configures the Berkeley DB logging subsystem.

The DB_ENV->log_set_config() method configures a database environment, not only operations performed using the specified DB_ENV handle.

The DB_ENV->log_set_config() method may be called at any time during the life of the application.

The DB_ENV->log_set_config() method returns a non-zero error value on failure and 0 on success.

Parameters

flags

The flags parameter must be set by bitwise inclusively OR'ing together one or more of the following values:

onoff

If the onoff parameter is zero, the specified flags are cleared; otherwise they are set.

Errors

The DB_ENV->log_set_config() method may fail and return one of the following non-zero errors:

EINVAL

An invalid flag value or parameter was specified.

Class

DB_ENV

See Also

Logging Subsystem and Related Methods