Good point.

Ideally speaking, I think AbstractTdLogger#write should be done in the similar way.