Is there a way to attach the Azure Functions host logger to normal C# tracing?

279 views Asked by At

I have an Azure Function app that uses other DLLs. I'm trying to get the logging from those DLLs, which uses TraceSource or Trace.*, to show up in the azure functions/webjobs host window when running locally (and hopefully when running in Azure). Is there any way to connect them, like adding a TraceListener statically that pipes into the host?

1

There are 1 answers

2
brettsam On

There's a solution for wiring up a TraceListener here: https://github.com/Azure/azure-webjobs-sdk-script/issues/688. Let me know if that works for you.