formatting
fix a bug with parsing multiline data

In some cases emitLog can be called for single line data and in some
cases for multiline data. So we need to split the data by lines and
parse each line individually.