fpillet/NSLogger — pull request #83 by dunkelstern (2012-12-05 11:52:16+00:00)
Title: Create the logqueue as unlimited CFArray, as it may overflow

This happens mostly if you log a lot of things and the network connection can not keep up.

Easy to reproduce on an iPad:
- "Network Link Conditioner" using the "Edge" profile and turned on.
- Log a lot of messages (more than 32 exactly, before the Logger has the time to send it to the logger host)
- Crash in `LoggerMessageGetSeq` with bogus values for `partCount` as somewhere the array overflowed (part-counts of 8000 and higher were seen here)

Alternatively one could limit the queue to 32 items (to avoid eating too much memory) and block on logging the 33rd until the log has been written/transmitted to the disk/host. But for me an unlimited queue seems to be not so bad.