Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7701061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:53:36+00:00 2026-05-31T22:53:36+00:00

Why is there a Trace Severity in both the WriteTrace method of the SPDiagnosticsService

  • 0

Why is there a Trace Severity in both the WriteTrace method of the SPDiagnosticsService and in the SPDiagnosticsCategory?
What I cannot understand is that when you use the WriteTrance, you have to supply the Severity and the category … so there would be 2 severities. why is that;

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:53:38+00:00Added an answer on May 31, 2026 at 10:53 pm

    The TraceSeverity in the SPDiagnosticsCategory is the severity that your log message must equal or exceed in order for the message to be written. This value can be controlled in Central admin, to control the level of details your logging writes.

    The TraceSeverity in the SPDiagnosticsService.WriteTrace() method is how important that message is. If it equals or exceeds the TraceSeverity in the SPDiagnosticsCategory, the message is written.

    Example:

    • Category is set to LOW severity, and you write a message with HIGH
      severity. An entry is added to the logs.
    • Category is set to HIGH severity, and your write a message with LOW severity. Nothing is
      written to the logs.

    Thus, you can put calls to WriteTrace() in your code a differing levels of detail, and through central admin control the amount of information being written to your logs.

    Also note that writing using SPDiagnosticsService.WriteEvent() can also write to the trace log too. I wrote a blog post about this you might find useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way that I can trace every method, basically a line trace,
When analysing Oracle tkprof trace files I have noticed that there is sometimes a
Is there an easy way to generate a log file that will trace at
I have an inner class that implements Iterable with a method similar to the
I have a set of mstest unit tests, which use Trace.Write to collect some
Is there any API that allows to prints all the exception-related info (stack trace,
is there a way to trace an ARRAY in FLASH. I want to have
Recently I came across this error in my WCF trace: There was an error
Is there a way to get the trace table for a Python program? Or
Is there a maximum number of trace sources for app.config, and by definition listeners

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.