Flesh out the 'loglevel' stuff, and make better use of it, or at least figure out what to do with it.