Added logging and activate output on exceptions

Logging can now be seen from the output. (colour coded)
If an exception occurs - it will still display output.