Re: [Qemu-devel] [questions] about qemu log

2014-08-06 Thread William Dauchy
On Wed, Aug 6, 2014 at 12:43 PM, William Dauchy wrote: > this make it incompatible with -daemonize option. > there should be a possibility to detach the process and also redirect > stderr somewhere. I have done a quick and dirty patch for my own qemu binary so I can use daemonize and also redirec

Re: [Qemu-devel] [questions] about qemu log

2014-08-06 Thread Peter Crosthwaite
On Wed, Aug 6, 2014 at 5:42 PM, Markus Armbruster wrote: > "Zhang Haoyu" writes: > > 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 a

Re: [Qemu-devel] [questions] about qemu log

2014-08-06 Thread William Dauchy
On Wed, Aug 6, 2014 at 12:40 AM, Peter Crosthwaite wrote: > 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

Re: [Qemu-devel] [questions] about qemu log

2014-08-06 Thread Markus Armbruster
"Zhang Haoyu" writes: 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 >

Re: [Qemu-devel] [questions] about qemu log

2014-08-06 Thread Zhang Haoyu
>>> 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'

Re: [Qemu-devel] [questions] about qemu log

2014-08-05 Thread Markus Armbruster
"Zhang Haoyu" writes: >> 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 cl

Re: [Qemu-devel] [questions] about qemu log

2014-08-05 Thread Zhang Haoyu
> 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

Re: [Qemu-devel] [questions] about qemu log

2014-08-05 Thread Peter Crosthwaite
On Wed, Aug 6, 2014 at 11:23 AM, Zhang Haoyu wrote: 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 >>> opti

Re: [Qemu-devel] [questions] about qemu log

2014-08-05 Thread Zhang Haoyu
>>> 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 optio

Re: [Qemu-devel] [questions] about qemu log

2014-08-05 Thread Peter Crosthwaite
On Wed, Aug 6, 2014 at 6:48 AM, William Dauchy wrote: > On Tue, Jul 29, 2014 at 9:51 PM, Eric Blake wrote: >> 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

Re: [Qemu-devel] [questions] about qemu log

2014-08-05 Thread William Dauchy
On Tue, Jul 29, 2014 at 9:51 PM, Eric Blake wrote: > 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

Re: [Qemu-devel] [questions] about qemu log

2014-07-29 Thread Eric Blake
On 07/25/2014 08:28 PM, Zhang Haoyu wrote: >> In a shell you would write something like: >> >> 2> stderr.log >> >> You may also want to toggle QEMU's -msg timestamp=on option. >> > I think the "-msg -msg timestamp=on" option will add timestamp to the output > of error_report(fmt, ...), > but wher

Re: [Qemu-devel] [questions] about qemu log

2014-07-25 Thread Zhang Haoyu
Hi, all If I use qemu command directly to run vm, bypass libvirt, how to configure qemu to assure that each vm has its own log file, like vmname.log? For example, VM: rhel7-net has its own log file, rhel7-net.log, VM:rhel7-stor has its own log file, rhel7-stor.log. >>

Re: [Qemu-devel] [questions] about qemu log

2014-07-25 Thread Andreas Färber
Am 25.07.2014 13:07, schrieb Zhang Haoyu: >>> Hi, all >>> >>> If I use qemu command directly to run vm, bypass libvirt, how to configure >>> qemu to assure that each vm has its own log file, like vmname.log? >>> For example, VM: rhel7-net has its own log file, rhel7-net.log, >>> VM:rhel7-stor has

Re: [Qemu-devel] [questions] about qemu log

2014-07-25 Thread Zhang Haoyu
>> Hi, all >> >> If I use qemu command directly to run vm, bypass libvirt, how to configure >> qemu to assure that each vm has its own log file, like vmname.log? >> For example, VM: rhel7-net has its own log file, rhel7-net.log, >> VM:rhel7-stor has its own log file, rhel7-stor.log. > >-D /path/to

Re: [Qemu-devel] [questions] about qemu log

2014-07-25 Thread Alex Bennée
Zhang Haoyu writes: > Hi, all > > If I use qemu command directly to run vm, bypass libvirt, how to configure > qemu to assure that each vm has its own log file, like vmname.log? > For example, VM: rhel7-net has its own log file, rhel7-net.log, > VM:rhel7-stor has its own log file, rhel7-stor.log

[Qemu-devel] [questions] about qemu log

2014-07-24 Thread Zhang Haoyu
Hi, all If I use qemu command directly to run vm, bypass libvirt, how to configure qemu to assure that each vm has its own log file, like vmname.log? For example, VM: rhel7-net has its own log file, rhel7-net.log, VM:rhel7-stor has its own log file, rhel7-stor.log. Thanks, Zhang Haoyu