You now how when you
Qt Code:
  1. qDebug() << 1 << 2 << 3;
To copy to clipboard, switch view to plain text mode 
it neatly prints a line break after the 3? How does the << operator know which one is the last item in the chain?
I would like to borrow (steal, really) this feature for a custom file logger I wrote where I would like to chain the
<< operator and it should put a line break after the last item.