autogen_core.application.logging#

autogen_core.application.logging.EVENT_LOGGER_NAME = 'autogen_core.events'#

Logger name used for structured event logging

Type:

str

class autogen_core.application.logging.LLMUsageTracker[source]#

Bases: Handler

property completion_tokens: int#
emit(record: LogRecord) None[source]#

Emit the log record. To be used by the logging module.

property prompt_tokens: int#
reset() None[source]#
property tokens: int#
autogen_core.application.logging.ROOT_LOGGER_NAME = 'autogen_core'#

Logger name used for structured event logging

Type:

str

autogen_core.application.logging.TRACE_LOGGER_NAME = 'autogen_core.trace'#

Logger name used for developer intended trace logging. The content and format of this log should not be depended upon.

Type:

str