Refactored log class to work with new console window.