When I tried to enable the log to external file I got a message about potential security risk. I selected OK but the message appeared again and again.

This happened with Android 4.4.4. The device is a RedMi 2 Pro with MUIU 7.0.9.0.