Debugging messages on console and into file working now