Boost logo

Boost :

From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2019-07-19 23:03:45

On 7/20/19 1:09 AM, JH wrote:
> H Andrey and all,
> Can the log file be configured to set up the file size cap, when the
> log file reaches to the maximum file size, it deletes it and starts a
> new log file not rotates it?

You can write your own file collector that will just delete the file on
rotation. You will have to implement the `collector` interface:

Then you can set your collector to the sink backend and use the
rotation_size named parameter to limit the file size.

Boost list run by bdawes at, gregod at, cpdaniel at, john at