This is a full logging library with a build in way to log to console, file or any custom place as well as optional extensions to send a log file via mail or show it on the device.
The readme for this library with code samples, screenshots and more can be found on following github page:
Additionally there is also a full working demo app inside the demo module.