update logging todo
Add logpath support and improve logfile support.