Skip to main content

Flush Logs

The flushlogs() method on the LMChatLogger allows you to retrieve locally stored logs and send them to the LikeMinds backend. Once successfully pushed, the logs are cleared from the local database.

Steps to Flush Log

  1. Use the flushlogs method on the LMChatClient instance.
  2. The method fetches all stored logs and sends them to the LikeMinds backend and clears all logs locally

Example Usage

await lmChatClient?.flushlogs();