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

improved logger tests

fixed issues revealed by buffer tests

completed buffer tests

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

mercurial