change sendLogToClient to accept string instead of char*

string literal to char* is being deprecated (Xcode warns us), and it's easy enough for the user to format a string to pass themselves. The char* type makes it particularly difficult to pass a string constructed with a stringstream.

This may make it slightly less convenient to pass formatted strings, but more generally convenient.