rotatory_open()

rotatory_open()#

Open a rotatory log file.

Prototype

PUBLIC int rotatory_open(
    const char  *base_path,
    size_t       max_size,
    int          max_files
);
        

Parameters

Key

Type

Description

base_path

const char *

The base path for the log files.

max_size

size_t

The maximum size of each log file.

max_files

int

The maximum number of log files to keep.


Return Value

Returns a handle to the rotatory log on success, or a negative value on failure.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples