How to forward Android syslog to logFaces?

Logs can be invaluable in resolving complicated problems when developing mobile apps. Android OS generates fairly large amounts of logs, some are quite verbose and can be used for troubleshooting. There are conventional tools for capturing Android log files, however it is also possible to forward the logs in real time to a remote syslog server - such as logFaces. And then use logFaces client tools for making sense out of the log data stream. It is very convenient to use. So how this can be set up?

First things first - logFaces server must have a syslog receiver configured. If you don't have one, go to admin/connectivity page and add syslog receiver. Details on setting up receivers can be found in user manual.

Second - we need an app to forward the logs from Android device to remote server. For example, Logcat to UDP is quite good. Download it, install it on your device and point it to the logFaces receiver.

The last task is to permit "Logcat to UDP" to access the logs on your device. This is done by granting it an explicit permission:
'adb shell pm grant sk.madzik.android.logcatudp android.permission.READ_LOGS'

Finally, open logFaces client and create a real-time perspective for tracing the logs. If everything is working you will see lots of chatting going on from Android.