Added a str() method for creating log text.