diff options
Diffstat (limited to 'HACKING')
-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__) |