aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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:
22- libgnunet_plugin_xxx_yyy.so: plugin for API xxx 22- libgnunet_plugin_xxx_yyy.so: plugin for API xxx
23- libgnunetxxx.so: library for API xxx 23- libgnunetxxx.so: library for API xxx
24 24
25
25logging: 26logging:
26- services and daemons use their directory name in GNUNET_log_setup (i.e. 'core') 27- services and daemons use their directory name in GNUNET_log_setup (i.e. 'core')
27 and log using plain 'GNUNET_log'. 28 and log using plain 'GNUNET_log'.
@@ -32,6 +33,9 @@ logging:
32- pure libraries (without associated service) use 'GNUNET_log_from' with 33- pure libraries (without associated service) use 'GNUNET_log_from' with
33 the component set to their library name (without lib 34 the component set to their library name (without lib
34 or '.so'), which should also be their directory name (i.e. 'nat') 35 or '.so'), which should also be their directory name (i.e. 'nat')
36- logging should be unified per-file by defining a LOG macro with the
37 appropriate arguments, along these lines:
38 #define LOG(kind,...) GNUNET_log_from (kind, "example-api",__VA_ARGS__)
35 39
36 40
37configuration: 41configuration: