fix log output strategy