MAX_QUEUED_LOGS
Description
Section titled “Description”By default, DogLog uses a separate thread for handling log operations.
When that thread is enabled, each call to DogLog#log()
is added to a queue to be processed by the log thread.
If too many logs are added to the queue before they can be processed, the queue becomes full and logs can’t be added.
If you disable the log thread with DogLogOptions#withUseLogThread(false)
, the queue is not used and this error will not occur.
Solution
Section titled “Solution”To avoid this error, you can try the following:
- Reduce the number of logs being added to the queue, especially in short bursts
- Increase the queue capacity in the configured DogLog options
- Process logs from the main thread directly, instead of queueing them, using
DogLogOptions#withUseLogThread(false)