Added formatter to logging