我试图从特定跟踪源获取跟踪输出到Azure Portal的日志流。但是,这似乎不起作用
<system.diagnostics>
<sharedListeners>
<add name="txtListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="SchoolsDirectoryLog.log" />
</sharedListeners>
<sources>
<source name="SkyNet" switchName="sourceSwitch" switchType="System.Diagnostics.SourceSwitch">
<listeners>
<add name="txtListener" />
</listeners>
</source>
</sources>
<switches>
<add name="sourceSwitch" value="Error, Information, Warning, Verbose" />
</switches>
</system.diagnostics>