stdlog is None by default