Add chat logging
Add emit(), on() event methods