adds std or file for log handler