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 |
---|---|---|
|
|
The base path for the log files. |
|
|
The maximum size of each log file. |
|
|
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