[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [questions] about qemu log
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [questions] about qemu log |
Date: |
Fri, 25 Jul 2014 15:20:17 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
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 its own log file, rhel7-stor.log.
>>
>> -D /path/to/unique/file/name.log
>>
> -D option is to configure qemu_logfile for the output logs which are
> controlled by qmp command "logfile", which can be enabled/disabled on run
> time.
>
> I want to configure the log file for the output of fprintf(stderr, fmt, ...),
> .etc,
> i.e., how to redirect the output of fprintf(stderr, fmt, ...), or some other
> log-interface to a specified file?
In a shell you would write something like:
2> stderr.log
You may also want to toggle QEMU's -msg timestamp=on option.
Cheers,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg