From 95602b60adc7adfe634f67ee74f6dc08dbae678c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 10 Oct 2011 13:28:26 +0000 Subject: new convention --- HACKING | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'HACKING') 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) -- cgit v1.2.3