Using this log handler in combination with SYSTEM_THREAD(ENABLED) can cause freezes on 3rd gen Devices, as described in the Particle forum thread linked above.
To solve this, the logs could be saved to a buffer and the network functions moved to the main loop, as suggested and implemented by @rickkas7 in https://github.com/rickkas7/SdCardLogHandlerRK
This log handler is sending udp packets in the log handler function: https://github.com/barakwei/ParticlePapertrail/blob/ab2a0836cc3343c85d156539dd3ae1bc12452ce3/src/papertrail.cpp#L28
Using network functions in the log handler function is not recommended:
Using this log handler in combination with
SYSTEM_THREAD(ENABLED)
can cause freezes on 3rd gen Devices, as described in the Particle forum thread linked above.To solve this, the logs could be saved to a buffer and the network functions moved to the main loop, as suggested and implemented by @rickkas7 in https://github.com/rickkas7/SdCardLogHandlerRK