In sitl, can the debug output of "hal.console->printf" be directed to a file?

Input the command --console -v arducopter to start sitl, and you can see the output of “hal.console->printf” in the popup MAVProxy console.
I would like to ask if there is a way to forward the output of “hal.console->printf” to a file or other ubuntu terminal?