Pregunta

I'm trying out the new Azure mobile services .Net backend. When debugging locally - where can I find the log output? Is it configurable?

¿Fue útil?

Solución

The logs go to the regular .NET system diagnostics. To see them you can add a trace listener to your web.config, and you'll see the traces going to the file you specify. For an example, see the snippet below.

<system.diagnostics>
  <trace autoflush="true">
    <listeners>
      <add name="default"
           type="System.Diagnostics.TextWriterTraceListener"
           initializeData="c:\temp\trace.log" />
    </listeners>
  </trace>
</system.diagnostics>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top