From b71f3dfcdc72ab1d1e707e90a594a27666b2333a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 10 Oct 2011 13:34:14 +0000 Subject: [PATCH] LOG macro convention --- HACKING | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.25.1