Category severity level versus log statement serverity

Feb 1, 2011 at 12:51 PM

I am new to the patterns & practices SharePoint Guidance and something that isn't clear to me is why you have to set a severity level for a logging category AND specify a severity level to a log statement. What's the deal with that. Could someone explain?

Kind regards,


Feb 1, 2011 at 12:58 PM

The level specified with the category is the default level if no level is specified in the logging statement (there are different overloads, you don't have to specify the level when you log).

Feb 1, 2011 at 2:12 PM

Thank you very much for the reply. I guessed as much but wanted to make sure.