Set log path or direct output to shell