Keeping java logs small by trimming long lines.