summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-10 13:28:26 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-10 13:28:26 +0000
commit95602b60adc7adfe634f67ee74f6dc08dbae678c (patch)
treec9afac0bf9402533c47e7c4039d47d3fc4fbf500 /HACKING
parent877cec324a39b6d0fa81a8a34d35c985114b9e4b (diff)
new convention
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING11
1 files changed, 11 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 82de084c9..bdbfd96bd 100644
--- a/HACKING
+++ b/HACKING
@@ -22,6 +22,17 @@ 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'.
+- command-line tools use their full name in GNUNET_log_setup (i.e. 'gnunet-publish')
+ and log using plain 'GNUNET_log'.
+- service access libraries log using 'GNUNET_log_from' and use
+ 'DIRNAME-api' for the component (i.e. 'core-api')
+- 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')
+
configuration:
- paths (that are substituted in all filenames) are in PATHS (have as few as possible)