If log to console is requested the parent console is attached or a new
onec created on windows. renamed attachExistingConsole function to describe more accurate what it does. still kept the debugconsole code as it might be desired to always create a new console for debug purposes.
Showing with 16 additions and 1 deletion