Category severity level versus log statement serverity

Feb 1, 2011 at 11:51 AM

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 11:58 AM

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 1:12 PM

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