On 4/10/07, <b class="gmail_sendername">Dries Buytaert</b> <<a href="mailto:dries.buytaert@gmail.com">dries.buytaert@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Last but not least, there is now a _watchdog() hook that modules can<br>tap into. In other words, it's now possible to integrate with<br>existing logging applications or to write custom logging handlers<br>(i.e. to send you an SMS message when something goes wrong, or to
<br>send you a Jabber notification when someone posts a new comment on<br>your Drupal blog).<br><br>If you're a developer, you'll notice that we now have additional<br>"watchdog levels" like WATCHDOG_CRITICAL and WATCHDOG_DEBUG. These
<br>are conform RFC 3164 and are defined as constants in bootstrap.inc.<br>Check 'em out.</blockquote><div><br>To module developers:<br><br>Please be careful about being too generous with the highest severity levels,
<br>such as Emergency, Critical, and Alert. Use sparingly and only when needed<br>so as not to clutter things (no one wants php undefined variable notices<br>sent to their pager!)<br><br>Also a new project has been created for logging and alerts. It has the emaillog
<br>alert module, compatible with HEAD (no nightly builds, because there is <br>no 6 tag yet, but get it through CVS or the Browse CVS link.<br><br><a href="http://drupal.org/project/logging_alerts">http://drupal.org/project/logging_alerts
</a> <br></div><br>This is a good demo on how to use the new hook too. The email message<br>is themable.<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The patch is a little rough around the edges -- most notably on the<br>documentation side (help texts, form descriptions, terminology) ...<br>We'll want to work on that, and I expect to see a number of small<br>follow-up patches to polish some of this.
</blockquote><div><br>It would be nice to get feedback from the doc team on this too (sepeck,<br>laura)? See patch below.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
We'll also want to provide some basic instructions on how to setup<br>the syslog routing in syslog.conf. </blockquote><div><br>There is a URL linked to in syslog settings to the syslog.conf man page<br>
I expanded that a bit, and added more instructions.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">We'll want to formulate practical
<br>advice as when to use dblog and when to use syslog. Feel free to<br>help with that, as you explore the new functionality. It can be done<br>in multiple small steps. :-)<br></blockquote></div><br>I created a patch for that in here
<br><a href="http://drupal.org/node/63881#comment-226747">http://drupal.org/node/63881#comment-226747</a><br><br>Please review.<br>-- <br><a href="http://2bits.com">2bits.com</a><br><a href="http://2bits.com">http://2bits.com
</a><br>Drupal development, customization and consulting.