[Wiki] changed: Doc/Dev/ConversionH4

Ben Klang <[email protected]>
Newsgroups gmane.comp.horde.cvs
Message-ID <[email protected]>
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.


-- 
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.