fixes bug in multiline messages, when messages wasn't a string, the logger broke, because you cannot call split on types difference from string