String concatenation in FileTarget::export() function replaced with joining of array

This is done to add new line symbols between messages. Otherwise different messages are added to the log file on the same line.