http://bugs.winehq.org/show_bug.cgi?id=3809
------- Additional Comments From tony_lambregts@telusplanet.net 2005-11-11 10:07 ------- this is what you want I think.
WINEDEBUG=wave,dscapure,mixer wine program_name 2>&1 | tee filename.out
More information is available here.
http://www.winehq.org/site/docs/wineusr-guide/bug-reporting