diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-10 13:51:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-10 13:51:51 +0000 |
commit | a2939bc01a0ee9a002735f04d8c731130d7a3248 (patch) | |
tree | 1a9e41362773f8b158a799782477cedf47ed1064 | |
parent | 0ae088e715401ce9a9681ade685a426058afc8db (diff) | |
download | gnunet-a2939bc01a0ee9a002735f04d8c731130d7a3248.tar.gz gnunet-a2939bc01a0ee9a002735f04d8c731130d7a3248.zip |
convention
-rw-r--r-- | HACKING | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -33,6 +33,8 @@ logging: | |||
33 | - pure libraries (without associated service) use 'GNUNET_log_from' with | 33 | - pure libraries (without associated service) use 'GNUNET_log_from' with |
34 | the component set to their library name (without lib | 34 | the component set to their library name (without lib |
35 | 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 | - plugins should use 'GNUNET_log_from' with the directory name | ||
37 | and the plugin name combined to produce the component name (i.e. 'transport-tcp'). | ||
36 | - logging should be unified per-file by defining a LOG macro with the | 38 | - logging should be unified per-file by defining a LOG macro with the |
37 | appropriate arguments, along these lines: | 39 | appropriate arguments, along these lines: |
38 | #define LOG(kind,...) GNUNET_log_from (kind, "example-api",__VA_ARGS__) | 40 | #define LOG(kind,...) GNUNET_log_from (kind, "example-api",__VA_ARGS__) |