Open pragnagopa opened 7 years ago
Do you mean that the actual behavior is that the logs only show in host logs, not function logs?
It might be the case that this is only an issue for extensions written on the "new model". E.g. your BuildFromAttribute
func that creates your async collector doesn't have access to the actual invocation binding context that contains the per invocation file logger that we set up.
Yes. Correct. Logs only show up in host logs and not in function logs as Async collector does not have access to tracewriter for the invoker.
TraceWriter in ScriptBindingProvider and ExtensionConfigContext are host level trace writers. We need a TraceWriter that can log at function level
Repro steps
Provide the steps required to reproduce the problem
EnableTestSend on NH output binding:
{ "type": "notificationHub", "name": "notification", "hubName": "scripthub", "connection": "scripthub_NOTIFICATIONHUB", "direction": "out", "enableTestSend": true, "platform": "wns" }
Expected behavior
NH debug logs show up in logs window
Actual behavior
NH debug logs show up in LogStream
Known workarounds
N/A
Related information
Provide any related information