-Borrowed Taylor Tomlin's Logging framework and the Console window.