Added a logger for the StreamThread