From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAfQC-0006Dt-VC for qemu-devel@nongnu.org; Fri, 25 Jul 2014 09:20:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAfQ4-0007IA-Ey for qemu-devel@nongnu.org; Fri, 25 Jul 2014 09:20:28 -0400 Received: from cantor2.suse.de ([195.135.220.15]:50587 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAfQ4-0007Hj-8c for qemu-devel@nongnu.org; Fri, 25 Jul 2014 09:20:20 -0400 Message-ID: <53D25991.3010001@suse.de> Date: Fri, 25 Jul 2014 15:20:17 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <201407251442088727201@sangfor.com>, <874my5hh4s.fsf@linaro.org> <201407251907132706648@sangfor.com> In-Reply-To: <201407251907132706648@sangfor.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [questions] about qemu log List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhang Haoyu Cc: =?UTF-8?B?QWxleCBCZW5uw6ll?= , qemu-devel Am 25.07.2014 13:07, schrieb Zhang Haoyu: >>> Hi, all >>> >>> If I use qemu command directly to run vm, bypass libvirt, how to conf= igure 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 co= ntrolled by qmp command "logfile", which can be enabled/disabled on run t= ime. >=20 > 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=3Don option. Cheers, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg