Wip/better logging architecture

Buffer the events before rendering, to avoid DOM freezing.

Note that it was only the case (freezing) with debug enabled and the console opened.