capture log output