Implemented basic logging functionality.