fix handling log name and priority