Viewing Logs¶
FIRERPA does not write any logs by default. If you need to view related running logs, you can use two methods to make the service write logs to a file. In most cases, you may have installed through a Magisk module or auto-start APP. In these two cases, you cannot set the log file by directly adding command-line arguments, and you need to configure logging through properties.local. You can manually edit the properties.local configuration file or use the following command to write the log configuration.
echo logfile=/data/local/tmp/server.log >>~/properties.local
For users who start manually, since you are directly running launch.sh manually or by other means, you can also add the parameter --logfile=/data/local/tmp/server.log
after the command to achieve this. The effect is the same as the method above.
sh /path/to/server/bin/launch.sh --logfile=/data/local/tmp/server.log
Attention
After updating the properties.local configuration file, you need to restart the device or FIRERPA service for it to take effect.
We generally do not recommend enabling logs, because service logs are written in append mode, and in extreme situations, they may fill up your device’s storage. So you may need to write additional script logic to automatically clean up logs to prevent such problems.