Skip to main content
Open In Colab Open on GitHub AG2 offers utilities to log data for debugging and performance analysis. This notebook demonstrates how to use them. we log data in different modes: - SQlite Database - File In general, users can initiate logging by calling autogen.runtime_logging.start() and stop logging by calling autogen.runtime_logging.stop()

Getting Data from the SQLite Database

logs.db should be generated, by default it’s using SQLite database. You can view the data with GUI tool like sqlitebrowser, using SQLite command line shell or using python script:

Computing Cost

One use case of logging data is to compute the cost of a session.

Log data in File mode

By default, the log type is set to sqlite as shown above, but we introduced a new parameter for the autogen.runtime_logging.start() the logger_type = "file" will start to log data in the File mode.
This should create a runtime.log file in your current directory.