[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [questions] about qemu log
From: |
Zhang Haoyu |
Subject: |
Re: [Qemu-devel] [questions] about qemu log |
Date: |
Wed, 6 Aug 2014 09:23:26 +0800 |
>>> The output is on qemu's stderr. You are in control of what that stderr is.
>>
>> I don't get why we can configure
>> -D /path/to/unique/file/name.log
>>
>> but we also have to redirect stderr (I didn't checked if the daemonize
>> option was closing it). What's the purpose of this logfile option?
>>
>
>Well -D will log to file only loggable (i.e. qemu_log()) information
>(which has all sorts of options and switches). Stderr, is a little
>more static and should in theory be limited to genuine errors. But if
>you want a combined log of both you can simply omit -D to default
>qemu_log output to stderr. This gives you a combined log that you can
>redirect anywhere. To be honest, this is what I do as a matter of
>course (2> foo rather than -D foo).
>
Maybe we can introduce a new qemu option to specify a error logfile where
stderr be redirected, like below,
DEF("elogfile", HAS_ARG, QEMU_OPTION_elogfile, \
"-elogfile logfile redirect stderr log to logfile(default
/var/log/qemu/<vm name>##.log)\n",
QEMU_ARCH_ALL)
STEXI
@item -elogfile @var{logfile}
@findex -elogfile
redirect stderr in @var{logfile}
ETEXI
then we can set the error log file through qemu command, /var/log/qemu/<vm
name>##.log as default.
Thanks,
Zhang Haoyu
>There's plently of tree wide work to clean up the cases where stderr
>is used where qemu_log should be. If you are finding that log
>information is going to stderr instead of the log, patches would be
>welcome.
>
>Regards,
>Peter
- Re: [Qemu-devel] [questions] about qemu log, William Dauchy, 2014/08/05
- Re: [Qemu-devel] [questions] about qemu log, Peter Crosthwaite, 2014/08/05
- Re: [Qemu-devel] [questions] about qemu log,
Zhang Haoyu <=
- Re: [Qemu-devel] [questions] about qemu log, Peter Crosthwaite, 2014/08/05
- Re: [Qemu-devel] [questions] about qemu log, Zhang Haoyu, 2014/08/05
- Re: [Qemu-devel] [questions] about qemu log, Markus Armbruster, 2014/08/06
- Re: [Qemu-devel] [questions] about qemu log, Zhang Haoyu, 2014/08/06
- Re: [Qemu-devel] [questions] about qemu log, Markus Armbruster, 2014/08/06
- Re: [Qemu-devel] [questions] about qemu log, Peter Crosthwaite, 2014/08/06
Re: [Qemu-devel] [questions] about qemu log, William Dauchy, 2014/08/06