summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-10 13:34:14 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-10 13:34:14 +0000
commitb71f3dfcdc72ab1d1e707e90a594a27666b2333a (patch)
treeba1c5467eabd484ecac1cac085612392abb29a23 /HACKING
parent95602b60adc7adfe634f67ee74f6dc08dbae678c (diff)
LOG macro convention
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING4
1 files changed, 4 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index bdbfd96bd..3fbf17573 100644
--- a/HACKING
+++ b/HACKING
@@ -22,6 +22,7 @@ binaries:
- libgnunet_plugin_xxx_yyy.so: plugin for API xxx
- libgnunetxxx.so: library for API xxx
+
logging:
- services and daemons use their directory name in GNUNET_log_setup (i.e. 'core')
and log using plain 'GNUNET_log'.
@@ -32,6 +33,9 @@ logging:
- pure libraries (without associated service) use 'GNUNET_log_from' with
the component set to their library name (without lib
or '.so'), which should also be their directory name (i.e. 'nat')
+- logging should be unified per-file by defining a LOG macro with the
+ appropriate arguments, along these lines:
+ #define LOG(kind,...) GNUNET_log_from (kind, "example-api",__VA_ARGS__)
configuration: