LogMessage class now inherits from std::ostream.