Neil Bothwick schreef: > On Thu, 1 Sep 2005 04:30:41 -0400, Philip Webb wrote: > > >> If you want the detailed messages which run up the screen during an >> emerge, goto /etc/make.conf & set (dirname to taste) >> >> PORT_LOGDIR=/var/log/emerge-logs >> >> which will add 2 new files to that dir for each emerge you do. >> >> NB this will build up rapidly, so be careful if your disk space is >> limited. > > > Gzipping them saves a lot of space, i do it from a cron job > > $ cat /etc/cron.daily/portagelogs #!/bin/bash > > for f in $(portageq envvar PORT_LOGDIR)/*.log; do gzip -f $f > 2>/dev/null || echo "Failed to gzip $f" done > >
Can they not also be rotated with logrotate (I just set logrotate up to do this, I think, but since I just did it, and set it for monthy, I don't know if it works yet)? But honestly, I don't see why I'd need an emerge.log from 6 months ago anyway (or even last month), so is there anything wrong with that option? Or have I wasted 2 minutes of time :) ? Holly -- gentoo-user@gentoo.org mailing list