• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

Filtering the logs

Some tooltip text!
• 1 minute to read
 • 1 minute to read

The NetServer config file supports filtering logging to specific namespaces or classes.

<Diagnostics>
  <add key="LogWarning" value="true">
  <add key="LogWarningFrom" value="SuperOffice.Data">
</Diagnostics>

The above section tells the logger to only log warnings from the SuperOffice.Data namespace.

The Log...From supports both class names and namespaces.

To log from a specific class

<Diagnostics>
  <add key="LogWarning" value="true">
  <add key="LogWarningFrom" value="SoCommand">
</Diagnostics>

You can filter on multiple names

<Diagnostics>
  <add key="LogWarning" value="true">
  <add key="LogWarningFrom" value="SoCommand,SoDataReader,SuperOffice.CRM.Webhooks">
</Diagnostics>
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top