logger: fixed some stdout deprecation warnings.