Lines Matching +full:user +full:- +full:level
1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2017 Intel Corporation
35 uint32_t level; /**< Log level. */ member
68 #define RTE_LOGTYPE_USER1 24 /**< User-defined log type 1. */
69 #define RTE_LOGTYPE_USER2 25 /**< User-defined log type 2. */
70 #define RTE_LOGTYPE_USER3 26 /**< User-defined log type 3. */
71 #define RTE_LOGTYPE_USER4 27 /**< User-defined log type 4. */
72 #define RTE_LOGTYPE_USER5 28 /**< User-defined log type 5. */
73 #define RTE_LOGTYPE_USER6 29 /**< User-defined log type 6. */
74 #define RTE_LOGTYPE_USER7 30 /**< User-defined log type 7. */
75 #define RTE_LOGTYPE_USER8 31 /**< User-defined log type 8. */
88 #define RTE_LOG_DEBUG 8U /**< Debug-level messages. */
100 * - 0 on success.
101 * - Negative on error.
119 * Set the global log level.
121 * After this call, logs with a level lower or equal than the level
124 * @param level
125 * Log level. A value between RTE_LOG_EMERG (1) and RTE_LOG_DEBUG (8).
127 void rte_log_set_global_level(uint32_t level);
130 * Get the global log level.
133 * The current global log level.
138 * Get the log level for a given type.
153 * Log level. A value between RTE_LOG_EMERG (1) and RTE_LOG_DEBUG (8).
161 * Set the log level for a given type based on shell pattern.
165 * @param level
166 * The level to be set.
168 * 0 on success, a negative value if level is invalid.
170 int rte_log_set_level_pattern(const char *pattern, uint32_t level);
173 * Set the log level for a given type based on regular expression.
177 * @param level
178 * The level to be set.
180 * 0 on success, a negative value if level is invalid.
182 int rte_log_set_level_regexp(const char *regex, uint32_t level);
185 * Set the log level for a given type.
189 * @param level
190 * The level to be set.
192 * 0 on success, a negative value if logtype or level is invalid.
194 int rte_log_set_level(uint32_t logtype, uint32_t level);
199 * Before calling the user-defined stream for logging, the log
200 * subsystem sets a per-lcore variable containing the loglevel and the
202 * accessed by the user-defined log output function through this
213 * Before calling the user-defined stream for logging, the log
214 * subsystem sets a per-lcore variable containing the loglevel and the
216 * accessed by the user-defined log output function through this
233 * - >0: success, the returned value is the log type identifier.
234 * - (-ENOMEM): cannot allocate memory.
242 * Register a dynamic log type and try to pick its level from EAL options
245 * to search for matching regexp in the list of EAL log level options and
246 * pick the level from the last matching entry. If nothing can be applied
247 * from the list, the level will be set to the user-defined default value.
252 * Fallback level to be set if the global list has no matching options
254 * - >=0: the newly registered log type
255 * - <0: rte_log_register() error value
263 * Dump the global level and the registered log types.
276 * The level argument determines if the log should be displayed or
280 * level and type in the logged string.
282 * @param level
283 * Log level. A value between RTE_LOG_EMERG (1) and RTE_LOG_DEBUG (8).
290 * - 0: Success.
291 * - Negative on error.
293 int rte_log(uint32_t level, uint32_t logtype, const char *format, ...)
307 * The level argument determines if the log should be displayed or
312 * level and type in the logged string.
314 * @param level
315 * Log level. A value between RTE_LOG_EMERG (1) and RTE_LOG_DEBUG (8).
324 * - 0: Success.
325 * - Negative on error.
327 int rte_vlog(uint32_t level, uint32_t logtype, const char *format, va_list ap)
333 * The RTE_LOG() is a helper that prefixes the string with the log level
337 * Log level. A value between EMERG (1) and DEBUG (8). The short name is
346 * - 0: Success.
347 * - Negative on error.
358 * level argument.
361 * Log level. A value between EMERG (1) and DEBUG (8). The short name is
370 * - 0: Success.
371 * - Negative on error.