always set the logger for source.