extracted logging

no longer need to check config and log when logging