TranscriptLoggerMiddleware class

Logs incoming and outgoing activities to a TranscriptStore.

Constructors

TranscriptLoggerMiddleware(TranscriptLogger)

Middleware for logging incoming and outgoing activities to a transcript store.

Methods

onTurn(TurnContext, () => Promise<void>)

Initialization for middleware turn.

Constructor Details

TranscriptLoggerMiddleware(TranscriptLogger)

Middleware for logging incoming and outgoing activities to a transcript store.

new TranscriptLoggerMiddleware(logger: TranscriptLogger)

Parameters

logger
TranscriptLogger

Transcript logger

Method Details

onTurn(TurnContext, () => Promise<void>)

Initialization for middleware turn.

function onTurn(context: TurnContext, next: () => Promise<void>): Promise<void>

Parameters

context
TurnContext

Context for the current turn of conversation with the user.

next

() => Promise<void>

Function to call at the end of the middleware chain.

Returns

Promise<void>