# mco_disk_set_log_params

> Set log parameters for the Disk Manager.

### Prototype

        MCO_RET	mco_disk_set_log_params(	/*IN*/ mco_db_h db, /*IN*/ mco_log_params_t* params);

### Arguments

db | The database handle that was established by `mco_db_connect()`
params | The address of a `mco_log_params_t` variable to receive the log paramaters

### Description

> This function sets logging parameters for the Disk Manager. See Setting Log Type and Parameters

### Return Codes

MCO_S_OK | Log parameters successfully set

### Example

        Application snippet:

        const char * dbname = "SimpleDb";

        int main(int argc, char* argv[])
        {
            mco_db_h db;
            MCO_RET rc;
            mco_device_t       dev[4];
            mco_db_params_t    db_params;
            mco_log_params_t   log_params;

            ...
            rc = mco_db_open_dev( dbname, simple_get_dictionary(), dev, 4, &db_params );

            if ( MCO_S_OK != rc )
            {
                rc = mco_db_connect(  dbname, &db );
                ...
                log_params.default_commit_policy = MCO_COMMIT_SYNC_FLUSH;
                rc = mco_disk_set_log_params( db, &log_params );

                rc = mco_db_close( dbname );
                ...
            }
        }

### Files

Header file:
mco.h
Source file:
mcodisk.c
Library:
libmcovtdsk.a
Header file:
mco.h
Source file:
mcovtmem.c
Library:
libmcovtmem.a