set logger in runtime, logging level from config