It's better to use spaces between '<<', Compare:
```cpp
out<<type_<<" "<<time_<<" "<<len_<<" "<<msg_<<endl;
// with
out << type_ << " " << time_ << " " << len_ << " " << msg_ << endl;
```