You can use the client.log.queue.limit parameter, in the default.cfg file, to specify the capacity of the the internal queue that temporarily holds log messages before they are written out to disk files.
The default value of this parameter is 100000, and it accepts only integer values.