use the line length when logging the line
add a test
Merge pull request #35 from uber/line_length

use the line length when logging the line