logger: removed unnecessary boundary checks and limited string parts so they always respect buffer lengths

improved logger tests

fixed issues revealed by buffer tests

(0) -100 -30 -10 -3 +3 +10 +30 +100 +300 tip

mercurial