Edit

DialogTestLogger Class

A middleware to output incoming and outgoing activities as json strings to the console during unit tests.

Initialize a new instance of the dialog test logger.

default to logging.getLogger(name).info. :type log_func: Callable[..., None] :param json_indent: An indent for json output, default indent is 4. :type json_indent: int :param time_func: A time function to record time spans, default to time.monotonic. :type time_func: Callable[[], float]

Constructor

DialogTestLogger(log_func: Callable[[...], None] = None, json_indent: int = 4, time_func: Callable[[], float] = None)

Parameters

Name Description
log_func

A callable method or object that can log a message,

Default value: None
json_indent
Default value: 4
time_func
Default value: None

Methods

on_turn

on_turn

async on_turn(context: TurnContext, logic: Callable[[TurnContext], Awaitable])

Parameters

Name Description
context
Required
logic
Required