fix a missing fake logging method
make sure we strip newlines from stdout/stderr capturing