# Capture logs

Source: [https://docs.qualcomm.com/doc/80-70014-16/topic/capture_logs.html](https://docs.qualcomm.com/doc/80-70014-16/topic/capture_logs.html)

User space and kernel audio driver logs can be used to identify issues.

| **User space logs** | To capture user space<br>                                    logs:<br><br>    ssh root@ip-addr<br>    mount -o remount,rw /<br>    cat /var/log/user.log<br>    Copy to clipboard<br><br><br>See<br>                                        [User space logs](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-12/using_open_source_debug_tools.html#user_space_logs) for<br>                                    detailed instructions. |
| --- | --- |
| **Kernel audio driver logs** | To capture kernel<br>                                    logs:<br><br>    ssh root@ip-addr dmesgCopy to clipboard<br><br><br>                                <br>To disable kernel logs in a specific<br>                                    file:<br><br>    echo –n “file <filename> -p” > /sys/kernel/debug/dynamic_debug/controlCopy to clipboard |
| **Dynamic kernel logs** | Dynamic logging is disabled by default. To enable it, add the<br>                                        `CONFIG_DYNAMIC_DEBUG` kernel configuration,<br>                                    recompile, and re-flash the device.<br><br><br>                                <br>To enable audio dynamic kernel<br>                                    logs:<br><br>    ssh root@ip-addr<br>    mount -o rw,remount -t debugfs none /sys/kernel/debug<br>    echo –n “file <filename> +p” > /sys/kernel/debug/dynamic_debug/control<br>    Copy to clipboard<br><br><br>                                <br>See [Enable dynamic debug](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-12/debugging_linux_kernel.html#enable_dynamic_debug)<br>                                    for detailed instructions. |

**Parent Topic:** [Debug](https://docs.qualcomm.com/doc/80-70014-16/topic/debug.html)

Last Published: Jul 15, 2024

[Previous Topic
Debug](https://docs.qualcomm.com/bundle/publicresource/80-70014-16/topics/debug.md) [Next Topic
Analyze collected logs](https://docs.qualcomm.com/bundle/publicresource/80-70014-16/topics/log_analysis.md)