fix logging to set output and level. access config.yaml to set logging output and level.