set_log_size

set_log_size — sets the maximum log file size for Script Log output.

Synopsis

set_log_size (nbytes)
    

Arguments

nbytes

The approximate maximum number of bytes to store before rotating the log file.

Returns

t on success, otherwise an error message.

Description

This function sets the approximate maximum file size for holding Script Log output. The actual file size will be slightly larger, as the file is rotated at the first line break after the transaction that exceeds the file size. When the log file is rotated, the current file is moved to filename.1, and filename is recreated. If filename.1 exists before rotation, it will be deleted and replaced with the current log file.

See also set_log_file and flush_log_file.