summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-10 13:51:51 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-10 13:51:51 +0000
commita2939bc01a0ee9a002735f04d8c731130d7a3248 (patch)
tree1a9e41362773f8b158a799782477cedf47ed1064 /HACKING
parent0ae088e715401ce9a9681ade685a426058afc8db (diff)
convention
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING2
1 files changed, 2 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 3fbf17573..6e7a3e50e 100644
--- a/HACKING
+++ b/HACKING
@@ -33,6 +33,8 @@ 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')
+- plugins should use 'GNUNET_log_from' with the directory name
+ and the plugin name combined to produce the component name (i.e. 'transport-tcp').
- 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__)