[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17336 - gnunet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17336 - gnunet |
Date: |
Mon, 10 Oct 2011 15:34:14 +0200 |
Author: grothoff
Date: 2011-10-10 15:34:14 +0200 (Mon, 10 Oct 2011)
New Revision: 17336
Modified:
gnunet/HACKING
Log:
LOG macro convention
Modified: gnunet/HACKING
===================================================================
--- gnunet/HACKING 2011-10-10 13:28:26 UTC (rev 17335)
+++ gnunet/HACKING 2011-10-10 13:34:14 UTC (rev 17336)
@@ -22,6 +22,7 @@
- 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 @@
- 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:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17336 - gnunet,
gnunet <=