DialogTestLogger class
Log a transcript of messages from a dialog to the console, along with additional diagnostic information.
For use with the DialogTestClient class.
Example:
let client = new DialogTestClient(DIALOG, OPTIONS, [new DialogTestLogger()]);
Constructors
| Dialog |
Initializes a new instance of the DialogTestLogger class. |
Methods
| on |
Called each time the bot receives a new request. |
Constructor Details
DialogTestLogger(Logger)
Initializes a new instance of the DialogTestLogger class.
new DialogTestLogger(logger?: Logger)
Parameters
- logger
- Logger
A logger object with a log function.
Method Details
onTurn(TurnContext, () => Promise<void>)
Called each time the bot receives a new request.
function onTurn(context: TurnContext, next: () => Promise<void>): Promise<void>
Parameters
- context
-
TurnContext
(xref:botbuilder-core.TurnContext) for current turn of conversation with the user.
- next
-
() => Promise<void>
Function to call to continue execution to the next step in the middleware chain.
Returns
Promise<void>
A Promise that represents the work queued to execute.