X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Flog.h;h=444c1d73219e3b36323d0e5ec9d9eca6258c454f;hb=356174d97981c9c1166458db7dfa939f3202349f;hp=84d5cc637f195da4bb9781c58545d1da17e67d5e;hpb=0eeba5822b3ff0e76ae0fd0272536d371d272d7d;p=bertos.git diff --git a/bertos/cfg/log.h b/bertos/cfg/log.h index 84d5cc63..444c1d73 100644 --- a/bertos/cfg/log.h +++ b/bertos/cfg/log.h @@ -111,26 +111,30 @@ * also which print function are linked. * If you choose a low level of log you link all log function (error, warning and info), * but if choose a hight level you link only that have the priority egual or hight. - * The priority level go from error (most hight) to info (most low) (see cfg/debug.h + * The priority level go from error (highest) to info (lowest) (see cfg/debug.h * for more detail). - * \{ + * + * $WIZARD_LIST = { + * "log_level" : ["LOG_LVL_NONE", "LOG_LVL_ERR", "LOG_LVL_WARN", "LOG_LVL_INFO"] + * } */ #define LOG_LVL_NONE 0 #define LOG_LVL_ERR 1 #define LOG_LVL_WARN 2 #define LOG_LVL_INFO 3 -/* \} */ /** * \name Logging format * * There are two logging format: terse and verbose. The latter prepends * function names and line number information to each log entry. - * \{ + * + * $WIZARD_LIST = { + * "log_format" : ["LOG_FMT_VERBOSE", "LOG_FMT_TERSE"] + * } */ #define LOG_FMT_VERBOSE 1 #define LOG_FMT_TERSE 0 -/* \} */ #if LOG_FORMAT == LOG_FMT_VERBOSE #define LOG_PRINT(str_level, str,...) kprintf("%s():%d:%s: " str, __func__, __LINE__, str_level, ## __VA_ARGS__)