jeffz
2010-Feb-19 22:59 UTC
[Wine] Re: Does wine enable logging and if so can I disable it? And how
Susan Cragin wrote:> Susan Cragin wrote: > Thanks. Questions in title. > > Wine's "logging" is nothing more than printing messages to stderr. The > only way you get a log file is if you redirect stderr to a file, like so: > wine program.exe &>wine.log > Since you create the log files, they're easy to remove with: > rm wine.log > or some such command. > If you don't want any output at all, set the WINEDEBUG environment > variable to -all, like so: > WINEDEBUG=-all wine program.exe > Then none of the FIXMEs, ERRs, TRACEs, etc. will get printed to stderr. > And it makes troubleshooting very hard... > If you are getting a bunch of fixmes you can always turn of the 'channel' > WINEDEBUG=-richedit wine program.exe > should shut down all reporting for richedit. > James McKenzie > > ------------------------------------------------ > > Aren't these all things that have to be turned on in the first place, with winedbg? > I was looking for an automatic and insidious logger like linux's rsyslog. > Here's my problem. I'm running a program (NaturallySpeaking) that creates lots of useless error message and has the capacity to create huge logs. Rsyslog was killing it. > I turned of linux's logging with > sudo service rsyslog stop > and NatSpeak started running much better, without freezing/crashing. > So, I thought there might be an equivalent Windows logger that ran in wine, and a similar command to kill it. > Susanwhat was in these logs?
vitamin
2010-Feb-21 01:50 UTC
[Wine] Re: Does wine enable logging and if so can I disable it? And how
Susan Cragin wrote:> Aren't these all things that have to be turned on in the first place, with winedbg?No. Wine does not have a special "logger" process. All Wine has is a mechanism to enable/disable printing of some messages from all over the code. Ex: Code: if (logging_enabled) printf("Some log message\n"); One can control what logging enabled/disables via WINEDEBUG environment variable.