From a2939bc01a0ee9a002735f04d8c731130d7a3248 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 10 Oct 2011 13:51:51 +0000 Subject: convention --- HACKING | 2 ++ 1 file changed, 2 insertions(+) (limited to 'HACKING') diff --git a/HACKING b/HACKING index 3fbf17573..6e7a3e50e 100644 --- a/HACKING +++ b/HACKING @@ -33,6 +33,8 @@ 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') +- plugins should use 'GNUNET_log_from' with the directory name + and the plugin name combined to produce the component name (i.e. 'transport-tcp'). - 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__) -- cgit v1.2.3