[cvs] [Wiki] changed: Doc/Dev/ConversionH4
Ben Klang
ben at alkaloid.net
Wed Jun 2 20:23:12 UTC 2010
bklang Wed, 02 Jun 2010 16:23:12 -0400
Modified page: http://wiki.horde.org/Doc/Dev/ConversionH4
New Revision: 1.4
Change log: Examples for logging change
@@ -64,9 +64,20 @@
ALL javascript should be in js/. NO javscript (if at all possible)
should be contained in scripts/templates.
++ Log handling
-Log constants have changed.
+Log constants have changed: we no longer use the PEAR constants and
instead use strings to indicate the severity.
+Also note the function signature no longer requires the file name or
line number.
+
+OLD:
+<code>
+Horde::logMessage("Something broke", __FILE__, __LINE__, PEAR_LOG_ERR);
+</code>
+
+NEW:
+<code>
+Horde::logMessage("Something broke", 'ERR');
+</code>
++ Mail library
PEAR's Mail library has been replaced by Horde_Mail.
More information about the cvs
mailing list