prefixed logging for both stdout and stderr