Added functionality to get log name from source.