Changed RestLogCallback listeners to a set

Changed RestLogCallback listeners to a set to avoid registering the same listener again.