Currently, there is no documentation for the difference between NOTICE, WARNING, and ERROR levels in watchdog. Probably because of that, they are used somewhat inconsistently throughout core. This patch attempts to provide some, which probably need to be agreed on and then a second patch can make the use of each consistent.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)
webchick’s picture

Version: 5.x-dev » 7.x-dev
Status: Closed (fixed) » Needs review
FileSize
2.28 KB

Oops. These got un-documented when we switched to using standard error reporting. Let's try that again. ;)

webchick’s picture

Actually, this is better.

1. Moved the reference to the RFC URL to the PHPDoc of watchdog_severity_levels() which, as a side effect, documented that function. :)

2. Fixed some pluralization inconsistency (thanks, Morbus!)

3. Separate the "Log message" and the "Thing: Defintion" with "--" to make it a bit more clear (thanks, Morbus!)

4. Moved the @see references to the constants themselves, rather than in that weird comment block above which won't be displayed anywhere.

5. Removed said weird comment block above.

webchick’s picture

Oops. I misunderstood Morbus on #2. Setting back to the way things are pluralized in the RFC.

Note: "Notice" is inconsistent by being singular rather than plural, but we decided it's best to stick with what's in the RFC rather than deviate from it, even slightly. I'll go file a bug with IETF. ;)

Morbus Iff’s picture

Status: Needs review » Reviewed & tested by the community

Together in IRC.

Senpai’s picture

Second review, same as the first, a little bit louder, and a whole...

Never mind. RTBC via IRC chat.

webchick’s picture

Patch is the same; only difference is it now references ietf.org rather than faqs.org for the RFC URL. I believe this is now every pedantic thing we could possibly fix about this documentation. Feels good. :)

Thanks, Morbus and Senpai! :)

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Yay! This was committed as part of #101543: Document all constants.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.