The wrapper around console (i.e. const logger = console;) is superfluous. We're going to back it out and instead call console.log() or the applicable console method as needed.
logger as an argument will not be passed to the Bot constructors, nor will it continue to exist.
Steps to reproduce the behavior:
index.js/ts for thesampleconst logger = console;[bug]
May ask for some clarification?
console is also assigned to logger in the DialogBot and MainDialog classes. Is the logger only going to be removed from index.js/ts or is it going to be removed from everywhere?
My understanding was that the logger argument served the purpose of parity with the C# samples, and also the purpose of allowing something other than console to be provided for logging, as indicated by the comment: // Pass in a logger to the bot. For this sample, the logger is the console, but alternatives such as Application Insights and Event Hub exist for storing the logs of the bot.
Is this no longer needed?
What is the expected change for this issue? I have the same question as Kyle.
Does this mean it's expected to remove the logger constructor arg, and replace calls to it in each bot with a call to console.log?
Yes. We were being too clever. let's just use console.log as it's the only logger we use in the js/ts samples
Most helpful comment
What is the expected change for this issue? I have the same question as Kyle.
Does this mean it's expected to remove the logger constructor arg, and replace calls to it in each bot with a call to console.log?