# mco_translog_start

This function begins logging transactions according to the specified options.

### For an overview see page TL Applications

### Prototype

        MCO_RET	mco_translog_start(	mco_db_h db,
                        char const * file_path,
                        mco_TL_start_data_h data)

### Arguments

db | Database connection handle
file_path | Path and file-name or disk partition of the log file. If the pipe method is used, this argument specifies the pipe overflow file if it is required (otherwise 0).
data | TL start parameters

### Description

This function begins logging transactions according to the options specified in the argument `data`.

### Return Codes

MCO_S_OK | The TL runtime was initialized successfully
MCO_E_TL_NOT_INITIALIZED | TL API function called when TL is not initialized
MCO_E_TL_INVAL | Invalid argument value
MCO_E_TL_ALREADY_STARTED | Transaction logging was already started
MCO_E_TL_NOT_ITERABLE | Log file created without flag MCO_TRANSLOG_ITERABLE or unsupported transaction manager is applied
MCO_E_TL_NO_AUTO_OID | No auto_oid index declared in the database schema
MCO_E_TL_PIPE_USED | Pipe still open by previous instance of reader
MCO_E_TL_IO_ERROR | Input / output error

### Files

Header file:
mcolog.h
Source file:
mcolog.c
Library:
libmcolog.a