[Libvir] PATCH: Create a logfile for each QEMU vm

Daniel P. Berrange berrange at redhat.com
Tue May 15 16:15:04 UTC 2007

On Tue, May 15, 2007 at 05:09:56PM +0100, Mark McLoughlin wrote:
> On Tue, 2007-05-15 at 17:04 +0100, Daniel P. Berrange wrote:
> > For every VM we start it will create a logfile
> > 
> >   /etc/libvirt/qemu/logs/[vmname].log
> 	Why not /var/log? /etc/ isn't the place for this kind of stuff, surely.

True - though we'd have to code different behaviour when running as an
unprivileged user. Shouldn't complicate things too much i guess.

> 	(Putting them in their own directory is nice, though - that way we can
> use tmpwatch to clean them up ... logrotate isn't really suitable)

Yep, I also explicitly did *not* follow the Xen insanity of including the
PID in the filename. So we have a finite number of logs files instead of
ever growing set

|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

More information about the libvir-list mailing list