provide api/log endpoint