On Wed, 2007-10-17 at 16:06 -0400, Jeremy Katz wrote:
> On Wed, 2007-10-17 at 14:50 -0400, James Antill wrote:
> > On Wed, 2007-10-17 at 20:21 +0200, Terje Røsten wrote:
> > > * seth vidal
> > > > A while back it was suggested that we log which installroot the pkgs
> > > > were installed in if it is not /
> > > > 
> > > > so something like:
> > > > Oct 17 13:37:01 Installed: zsh - 4.3.4-4.fc8.i386 - /my/chroot
> > > > Oct 17 13:38:33 Erased: zsh - /my/chroot
> > > 
> > > > I just added this in - does it make sense to everyone to not list it if
> > > > it /?
> > 
> >  Who asked for this, and did they give a problem they are trying to
> > solve by it?
> >  I think a better solution is to use a different log file when using a
> > custom installroot, so maybe they'd be happy with a --logfile cmd line
> > option?
> 
> It wasn't such a huge problem in the past when we just did file logging,
> but now that we also log to syslog, we either need to make the logging
> more explicit or give a good way to disable the syslogging. 
> 

this sounds like we then just need a nicer way of fixing the logging.

in general the logging needs:
1. simplified api for file/stdout/stderr/syslog output
2. simplified configuration - afaict no one cares at all about
outputting more levels by default.

I think the logging has been over-thought since yum 0.8. We need
something much more simple and we're slowly converging there, I think.

I don't mind making a separate call to output to stderr vs stdout vs
filelog and turning up the verbosity as an option to the log, but I do
mind not being able to tell what:

self.verbose_logger.log(logginglevels.INFO_2, 'Loading "%s" plugin',
modname)

will output vs:
 self.verbose_logger.log(logginglevels.DEBUG_1, 'foo')

vs:

self.verbose_logger.log(logginglevels.DEBUG_4, 'bar')

at the same time a lot of our log outputs for debug logs are a mess.
We're outputting in places where we used to have lots of problems but
are now fairly stabilized code bases. - updates.py, for example.
ratcheting back the debug output there would probably help us all
around.

Finally, fitting in gettext support is critical for the next dev cycle.

thoughts?

-sv




_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to