switching logger interface to function,
so I can potentially pass config options to logger.