add SetLogger, to allow replacement of an existing logger for on-the-fly changes of logging level