Re: PATCH: Create a logfile for each QEMU vm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Dan.
-- 
|=- 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  -=| 


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]