Console logger and view split. credits to sorran for doing this change.