Modularized logger construction

Not sure if this should go under /lib or /plugins.  Leaving it under /lib for now.