X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Flog.h;h=9318697de97e81ad19eac2c3b7cd5f7fce23efe0;hb=37efb5bdc0504ab6df2e8db0635c9c6f7477e23e;hp=f490669265d4c6d5b3344ebc1b51b431e10dcc74;hpb=f481adc9d8e495b3a306c996a8e064ccdd70ac43;p=bertos.git diff --git a/bertos/cfg/log.h b/bertos/cfg/log.h index f4906692..9318697d 100644 --- a/bertos/cfg/log.h +++ b/bertos/cfg/log.h @@ -85,7 +85,8 @@ * * \version $Id$ * \author Daniele Basile - * + * + * $WIZ$ */ #ifndef CFG_LOG_H @@ -111,29 +112,27 @@ * 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). - * \{ + * + * $WIZ$ 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. - * \{ + * + * $WIZ$ log_format = "LOG_FMT_VERBOSE", "LOG_FMT_TERSE" */ #define LOG_FMT_VERBOSE 1 #define LOG_FMT_TERSE 0 -/* \} */ - -#define LOG_SILENT LOG_FMT_TERSE /* OBSOLETE */ -#define LOG_VERBOSE LOG_FMT_VERBOSE /* OBSOLETE */ #if LOG_FORMAT == LOG_FMT_VERBOSE #define LOG_PRINT(str_level, str,...) kprintf("%s():%d:%s: " str, __func__, __LINE__, str_level, ## __VA_ARGS__)