Use logging and fallback to stdin