eal: change several log levels matching a regexp
[dpdk.git] / lib / librte_eal / common / include / rte_log.h
index 85a03fd..8e58812 100644 (file)
@@ -155,6 +155,18 @@ void rte_set_log_type(uint32_t type, int enable);
  */
 uint32_t rte_get_log_type(void);
 
+/**
+ * Set the log level for a given type.
+ *
+ * @param pattern
+ *   The regexp identifying the log type.
+ * @param level
+ *   The level to be set.
+ * @return
+ *   0 on success, a negative value if level is invalid.
+ */
+int rte_log_set_level_regexp(const char *pattern, uint32_t level);
+
 /**
  * Set the log level for a given type.
  *