ComponentSpace

Forums



CyclicTraceListener in Azure


CyclicTraceListener in Azure

Author
Message
kresoJ
kresoJ
New Member
New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)

Group: Forum Members
Posts: 2, Visits: 21
How can I configure a listener for tracing in Azure?
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
You can use any .NET trace listener you wish.
We include an inbuilt cyclic trace listener that rolls over a new log file every day.

<!-- The diagnostics are only required for problem determination. -->
<system.diagnostics>
  <trace autoflush="true">
  <listeners>
   <add name="CyclicTextWriter"/>
  </listeners>
  </trace>
  <sources>
  <source name="ComponentSpace.SAML2" switchValue="Verbose">
   <listeners>
    <add name="CyclicTextWriter"/>
   </listeners>
  </source>
  </sources>
  <sharedListeners>
  <!-- Ensure IIS has create/write file permissions for the log folder. -->
  <add name="CyclicTextWriter" type="ComponentSpace.SAML2.Utility.CyclicTraceListener,ComponentSpace.SAML2" initializeData="logs"/>
  </sharedListeners>
</system.diagnostics>




Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 2 queries. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Select a Forum....












Forums, Documentation & Knowledge Base - ComponentSpace


Search