Przekieruj do pliku 2>

command >file 2>&1
Spotless Sardine