Exporting Instruction Stream Cloud Phone Logs
The log export function enables you to view logs on the local IDE and quickly locate faults, preventing real-time log printing from affecting fault locating.
- Use a remote terminal to log in to the server where the instruction stream cloud phone is deployed as the instruction stream cloud phone O&M user (for example, root).
- Run the following command to switch to the root user:
su - root
- Run the following command to query the container ID:
docker ps -a
- Run the following command to query real-time server logs. In the command, {kbox_id} indicates the container ID.
docker exec -it kbox_${kbox_id} logcat -d >> /home/file.log - Copy the logs from the corresponding directory on the server to a local directory.
/home/file.log is the log output path.
Parent topic: Log Management