Added logging helpers.

On branch: chatrooms