And one step further: replace l.log() with l.info(), warn, debug,
and error() as appropriate. Since I sort of doubt I'll ever be
merging this back into main.