change logmsg to varargs