Does wine enable logging and if so can I disable it? And how

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Susan Cragin

Does wine enable logging and if so can I disable it? And how

Post by Susan Cragin »

Thanks. Questions in title.
Charles Davis

Does wine enable logging and if so can I disable it? And how

Post by Charles Davis »

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.

Chip
James Mckenzie

Does wine enable logging and if so can I disable it? And how

Post by James Mckenzie »

Charles Davis <[email protected]> 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
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Does wine enable logging and if so can I disable it? And

Post by vitamin »

Susan Cragin wrote:Does wine enable logging and if so can I disable it? And how
Sorta on both questions.

Wine logging can not be disabled during compile time. It will always be compiled in. By default err, and fixme debug levels are enabled. Trace level is disabled. If you want to disable all set WINEDEBUG env var to "-all". This has a very small overhead in most places that try to log something.
Susan Cragin

Does wine enable logging and if so can I disable it? And how

Post by Susan Cragin »

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.
Susan
jeffz
Level 5
Level 5
Posts: 345
Joined: Thu Mar 13, 2008 10:03 pm

Re: Does wine enable logging and if so can I disable it? And

Post by jeffz »

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.
Susan
what was in these logs?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Does wine enable logging and if so can I disable it? And

Post by vitamin »

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: Select all

if (logging_enabled) printf("Some log message\n");
One can control what logging enabled/disables via WINEDEBUG environment variable.
Locked