X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=CONTRIBUTING.adoc;h=f18f9b06d49517e739e575ad8ae20cb757942b35;hb=53d65c1d23e2098901c411d670d87d40509c0f9f;hp=265d088e92d130bf884c202fe1099fca235e64e5;hpb=82b326997cab271be8e4d8352276e2560650b275;p=babeltrace.git diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index 265d088e..f18f9b06 100644 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -613,8 +613,8 @@ the environment variable and sets the log level symbol accordingly. -- [source,c] ---- -#ifndef MY_MODULE_LOGGING_H -#define MY_MODULE_LOGGING_H +#ifndef BABELTRACE_MY_MODULE_LOGGING_H +#define BABELTRACE_MY_MODULE_LOGGING_H /* * Copyright (c) 2017 EfficiOS Inc. @@ -643,7 +643,7 @@ the environment variable and sets the log level symbol accordingly. BT_LOG_LEVEL_EXTERN_SYMBOL(my_module_log_level); -#endif /* MY_MODULE_LOGGING_H */ +#endif /* BABELTRACE_MY_MODULE_LOGGING_H */ ---- -- + @@ -653,6 +653,9 @@ log level symbol. . Include the `logging.c` and `logging.h` in the `_SOURCES` variable of your module's object in your module's root `Makefile.am`. +. Add the log level initializing environment variable name to the + `log_level_env_var_names` array in `cli/babeltrace.c`. + [[logging-instrument-source]] ==== Instrument a C source file