Using a shared_ptr for the stringstream in the LoggingStream class.
Added log levels.
Renamed LoggingStream to LogStream to keep consistency.
Improved handling of different loggers with different names.