From: Christian Grothoff Date: Mon, 10 Oct 2011 13:34:14 +0000 (+0000) Subject: LOG macro convention X-Git-Tag: initial-import-from-subversion-38251~16659 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b71f3dfcdc72ab1d1e707e90a594a27666b2333a;p=oweals%2Fgnunet.git LOG macro convention --- 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: