Add simple chat logging api