r15579 - gnucash/trunk/lib/libqof/qof - More doc updates.

Josh Sled jsled at cvs.gnucash.org
Tue Feb 13 20:34:02 EST 2007


Author: jsled
Date: 2007-02-13 20:34:02 -0500 (Tue, 13 Feb 2007)
New Revision: 15579
Trac: http://svn.gnucash.org/trac/changeset/15579

Modified:
   gnucash/trunk/lib/libqof/qof/qoflog.h
Log:
More doc updates.


Modified: gnucash/trunk/lib/libqof/qof/qoflog.h
===================================================================
--- gnucash/trunk/lib/libqof/qof/qoflog.h	2007-02-14 01:24:23 UTC (rev 15578)
+++ gnucash/trunk/lib/libqof/qof/qoflog.h	2007-02-14 01:34:02 UTC (rev 15579)
@@ -63,6 +63,21 @@
  * Trailing newlines (e.g. <tt>PINFO("...\n", ...)</tt>) are removed; the logger
  * will newline separate output.
  *
+ * @section best Best Practices
+ *
+ * Code should:
+ *
+ * @li Define both <tt>static QofLogModule log_module</tt> and <tt>#define
+ *   G_LOG_DOMAIN</tt> to the same value.
+ * @li Define a logical, specific path as the log domain;
+ *   @c "gnc.gui.plugin-pages.sx-list" or
+ *   @c "gnc.register.gnome.cell.quickfill" are
+ *   good examples.
+ * @li Use glib-provided @c g_debug(...), @c g_message(...),
+ *   @c g_warning(...), @c g_critical(...) and
+ *   @c g_error(...) functions in preference to the historical qof/gnc @c
+ *   PINFO, @c PERR (&c.) macros
+ *
  * @see qof_log_parse_log_config(const char*)
  **/
 



More information about the gnucash-changes mailing list